Topic was automatically imported from the old Question2Answer platform.
Asked By
MikeMikeMike
Hi…,
I have a 3D RigidBody with a locked Y-Rotation-Axis (Axis Lock Angular Y). All other linear and angular axes are unlocked.
I want to set the y-rotation by code myself. The translation and rotation of the unlocked axes should be calculated by the physics engine.
I can change rotation.y in _physics_process(delta) or _process(delta), which rotates in y correctly, but this stops the translation and rotation of the unlocked axes, calculated by the physics engine. Another try to change the translation in _integrate_forces(state) doesn’t do anything.