How to apply force in forward direction? #349
Replies: 3 comments
-
Hello. Can you post the values of the
Is your rigid body the only one in your physics world? |
Beta Was this translation helpful? Give feedback.
-
In case of facing direction for the godot node the get_global_rotation_degrees is (0, -22.87934, 0) and quaternion of node is (0, 0.902999, 0, 0.429643) while the below values are as follows nope, there are several other rigidbodies aswell |
Beta Was this translation helpful? Give feedback.
-
i am trying to use react physics as physics engine in godot 4, basically i will be simulating physics in react world and display them in godot. i created a react rigidybody and did some basic collision detection, now i am trying to apply force, despite force working as intended but i am not able to apply force in forward direction.
in the above code, i am creating transform with position and rotation of godot node, and using it create rigidbody, after rigidbody is created i am applying force in z axis, while the rigidybody spawns in right position and scale, but when the force is applied it goes in random direction instead of rotation my node has.
my interpretation is if rigidybody has 80degree y axis as rotation, it should move forward along when force is applied, please let me know if my interpretation is right? or should i do something else to achieve it?
thanks
Beta Was this translation helpful? Give feedback.
All reactions