How to apply a local force?

Is there a way to apply a force local to an object that changes according to the object’s direction?

Also, when applying a force to an object, does the bodyX and bodyY follow the object or does the force origin stay as a point on the screen pushing the object away? For example if I apply a force to the center of an object, and the object gets pushed out of alignment while flying, will the force still be applied to the center of the object or will it be applied to the object’s position relative to the point of origin?

The center of an object stays the center of an object. 

Are you saying you want to thrust/push in the direction the object is facing?  i.e. The force vector should always be in the object’s ‘forward’ position like a missile?

https://www.youtube.com/watch?v=Ssno3LRoBKw

You can get the code from that show here:

http://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/Hangout%2081.zip

https://github.com/roaminggamer/CoronaGeek/tree/master/Hangouts/Hangout%2081

Wow that’s a lot of code to look through. Thanks roaminggamer I’ll have a look at it

The center of an object stays the center of an object. 

Are you saying you want to thrust/push in the direction the object is facing?  i.e. The force vector should always be in the object’s ‘forward’ position like a missile?

https://www.youtube.com/watch?v=Ssno3LRoBKw

You can get the code from that show here:

http://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/Hangout%2081.zip

https://github.com/roaminggamer/CoronaGeek/tree/master/Hangouts/Hangout%2081

Wow that’s a lot of code to look through. Thanks roaminggamer I’ll have a look at it