Hi all !
I'm trying to understand Godot's 3D transformations systems and must admitt I'm confused, even after a lot of readings.
To try to understand it, I'm trying to apply a local rotation on a rigid body which would be a vessel into space : no gravity, but forces.
I understood how to apply the local translation force (engine thrust for instance), this way :
func _integrate_forces(state):
if Input.is_action_pressed("thrust"):
moving_vec = global_transform.basis.z * engine_power
add_central_force(moving_vec)
but I cannot get how to produce a local rotation using force, rolling for example. I cannot simply use rotate_object_local() which would make it automatic, as i'm dealing with a rigid body, so I have to kind of make it manually, and though I tried a lot of combination, my vessel is always rotating randomly, I have no idea about how to do it right.
I'm conscient I'm certainly missing something basic here about transformations, sorry if it's the case.
Thanks for reading and helping though !!