moving a shape with mouse
Posted: Thu Mar 19, 2009 3:49 am
hi all,
i'm searching the way to move a shape with mouse. I've seen that the default method to drag an object is to use a Joint between the target body linked to a shape and a body without a shape, then set the position of the second body.
I would know if it's possible to manage the object drag directly by the setting it's position.
I've tried to realize this on my own, but unfortunatly it goes right only for few seconds, then the shape doesn't collide with others. Why?
i'm searching the way to move a shape with mouse. I've seen that the default method to drag an object is to use a Joint between the target body linked to a shape and a body without a shape, then set the position of the second body.
I would know if it's possible to manage the object drag directly by the setting it's position.
I've tried to realize this on my own, but unfortunatly it goes right only for few seconds, then the shape doesn't collide with others. Why?