how do I apply_impulse away from where the player is facing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PsychicGoldfish

the player is shoving an object in the direction that they are looking.

:bust_in_silhouette: 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.

1 Like