Bug: Relative vs Absolute Rotation Sensors Issue in Vehicle Stabilization
169 °C
Bug #162

Relative vs Absolute Rotation Sensors Issue in Vehicle Stabilization

Status: Open
Priority:
High
Added by:
Spi3lot
on October 30, '26
Assigned to:
Unassigned
Due date:

Steps to Reproduce

  1. Put a rotation-reading sensor on a vehicle (set it to e.g. "Roll")
  2. Connect a display to it
  3. Spawn the vehicle on slanted terrain
  4. See that the angle reads 0 upon spawning, regardless of the actual "global/absolute" angle

Explanation

Rotation sensors seem to be measuring the change in angle relative to where they were facing when the vehicle was spawned. Now, this might be intentional, but this messes up e.g. vehicle stabilization, like when the target angle of a controller is set to 0 but the vehicle was spawned on a slanted surface, it will always want to tilt sideways because 0 was only 0 relative to the surface the vehicle was spawned on, but is actually an entirely different angle relative to a flat surface.

I think the best way to go about this problem would be to add 3 more rotational sensor types like "Pitch (Absolute)", "Yaw (Absolute)" and "Roll (Absolute)" or "... (Global)" something along the lines, and possibly renaming the current "Pitch", "Yaw" and "Roll" sensors to "Pitch (Relative)", "Yaw (Relative)" and "Roll (Relative)"

Watchers

Video Clips

None

Log Files

None

Device

Device information is not visible to you

This project restricts device information visibility.
[ #1 ] by
Loading comments...
Loading comments...
1 comment loaded

You need to join this project to comment on issues. Join Project