Home > other >  Questions about Box2d and mouse
Questions about Box2d and mouse

Time:09-25

Box2d how to realize the rigid body movement with the mouse? Node (not that kind of the mouse, the need to click do,)

Want to realize where the mouse is moving rigid body to where, don't need the mouse to click the rigid body,

In the update, the location of the mouse you can get, can be assigned to the rigid body?

Master hope everybody can guide, thank you!!!!!

CodePudding user response:

Will the location of the mouse into the position of the box2d
Determine the mouse is in rigid body on
If on the rigid body, mouse movement, to update the position of the rigid body of fixture
  • Related