ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Interaction menu follows sea level

Open Best2nd opened this issue 11 years ago • 13 comments

ACE3 Version: 3.0.0.2-NOGIT

Mods:

  • @cba_a3
  • @ace3

Placed ACE3 Modules: None

Description: http://youtu.be/U5Jd7dZ01ic

Steps to reproduce: Simply stand on a dock or a pier during bad weather and have SI cursor disabled.

Where did the issue occur? SP editor

RPT log file: None

Best2nd avatar May 05 '15 19:05 Best2nd

are you on drugs sir ? more seriously I can't reproduce it, the menu don't move an inch.

alganthe avatar May 05 '15 19:05 alganthe

I've reprodued this, will look into it

PabstMirror avatar May 05 '15 19:05 PabstMirror

did some testing, the issue appeared with 1698a6330ca8a13a8057b5653c97131e11f4f08e

alganthe avatar May 05 '15 19:05 alganthe

Do note you need to disable the cursor for the interaction menu, if it's on the menu will stay still.

Best2nd avatar May 05 '15 19:05 Best2nd

yeah I did, I could reproduce the issue, problem is it's hard to reproduce (or at least for me) update: it seems the issue only appears on piers.

alganthe avatar May 05 '15 19:05 alganthe

Yeah, I think I've observed this before. IIRC it only happens with the self interact menu, and it's caused by the difference in wave height between the camera and a place a couple of meters in front of the camera (the position of the menu). I think it was easily reproducible on the pier on Stratis.

I didn't consider it very serious at that time, but it's something to fix eventually.

nicolasbadano avatar May 05 '15 20:05 nicolasbadano

positionCameraToWorld / modelToWorld all work on ATL / ASLW.

I think what's happening is the wave heights are different at camera / projection position and I have no clue how to account for that. I don't see any waveHeightAt commands.

It fairly rare, only carriers and piers:

To mitigate you can look down when self interacting as it minimizes the horizontal distance. We could just force cursor mode if over water as that mode works fine.

PabstMirror avatar May 11 '15 20:05 PabstMirror

Yeah pabst, that's exactly what I was trying to describe above.

I'll try to find a solution for this eventually. For now I'm calling it a feature: realistic seasickness simulation.

nicolasbadano avatar May 11 '15 20:05 nicolasbadano

Only way to currently get this is to spawn a local object and move it around

_getWaveHeightAt = {
    private["_position", "_object", "_waveHeight"];
    _position = _this select 0;
    _object = "Logic" createVehicleLocal [0,0,0];
     setPosASL _position;

    _waveHeight = (((ASLToATL getPosASLW _object) vectorDiff (getPosATL _object)) select 2);
    deleteVehicle _object;
    _waveHeight
};

jaynus avatar May 11 '15 23:05 jaynus

Yeah, I've thought of that, but it seemed overkill. But anyway, I can't think of any other way atm, so maybe that's the way:

_getWaveHeightAt = {
    _position = _this select 0;
    _object = "Logic" createVehicleLocal [0,0,0];
     setPosASL _position;

    ((getPosASLW _object) select 2) -  ((getPosASL _object) select 2)
};

nicolasbadano avatar May 11 '15 23:05 nicolasbadano

If we are going to do that, we should probably just have a static single spawned logic ready for it at all times. Just spawn it globally once to a GVAR and use it for the duration of the game.

jaynus avatar May 11 '15 23:05 jaynus

yup, that sounds good

nicolasbadano avatar May 11 '15 23:05 nicolasbadano

@Best2nd this is fixed in latest master

jaynus avatar May 13 '15 04:05 jaynus