Apply a force just to the side of my object in order to rotate it

Hi ! I would like to know if with defold it is possible to apply a downward force just on one side of my object in order to rotate it a bit like a scale. Thanks.

Yes, the “apply_force” message has a “position” parameter (in world space).

3 Likes

Thanks @ross.grams

2 Likes

If you run into any problems, get back to us :wink:

So the easiest way is probably to go.get_world_position() and add to it the desired offset (it would then a vector from the center of go to a point you would like to apply the force)

2 Likes