![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | OgGhostJelly |
How does the position parameter in apply_force work?
If I were to apply a force to the bottom left corner of a rigidbody what would that look like using apply_force?
nevermind I finally figured it out, the position parameter in apply_force is the offset from the rigidbody’s center not taking rotation into account
so to answer my previous question on how to apply force to the bottom left corner of a rigidbody that would be
apply_force(to_global(Vector2(-64, 0) - global_position))
This takes the bottom left corner of the rigidbody even if the rigidbody is spun around.