playMaker

Author Topic: how do i add force in world space, in the direction an object is facing?  (Read 1409 times)

Fleech

  • Playmaker Newbie
  • *
  • Posts: 45
i prefer the way force is applied consistently without regard to the objects rotation in world space, how do i apply force in world space in the direction a physics object is facing? i can use local space but for what i'm doing i would really prefer to use world space.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Hi.
Actually you need to set the space to self then.
As then it will depend on the objects rotation.

Any reason why you prefer using world space?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Hi,

Use TransformDirection and InverseTransformdirection to go from local to world space or the inverse, this what you need to get a world based force for a given object.

Bye,

 Jean