How to add force to specific point to rotate object

How to add force to specific point to rotate object
0.0 0

#1

Hello. I have a body with edge chain Physics Body.
I am trying to get the body rotate by applying specific force. When I addForce(Vec2(10,0)) body just slide to the right (like I suppose).

So how to make the object rotate by specific force? Ideally I want to add force Vec2(10,5) to the right corner point, but I don’t know how to achieve that. Any ideas? If i can’t do that then how to make an object rotate by physics?
fas


#2

take a look in cpp-tests for an example of this. Also are you using PolygonSprite or just Sprite?


#3

Thats a bit complicated because I am using Node that have added edgeChain component and have Sprite3D child (when I directly addComponent to the Sprite3D I can’t see edges).


#4

Can you share your project and resources with me privately and I will look and ask the engineers in the cubes over for help? :slight_smile: