Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PsychicGoldfish |
the player is shoving an object in the direction that they are looking.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | PsychicGoldfish |
the player is shoving an object in the direction that they are looking.
Reply From: | NachoCheese989 |
apply_central_impulse(self.global_transform.basis.z)
-global_transform.basis.z
is the direction you are looking (if forward for your player is -z), so global_transform.basis.z would be backwards.