Hi all, So far I love Bullet (well XBullet actually )
But i have a quick question, that hopefully someone can point me in the right direction....
How do I best 'pick up' an object via the mouse, i.e. The body moves to the current mouse position.. Are there any good samples/demos that I should be looking at ?
The base logic needs to go something like this:
OnMouseDown:
Store mouse position in m_position.
OnMouseMove:
Get current mouse position.
Apply impluse to move to current_mouse_position from m_position
Update m_position to current_mouse_position
Any ideas ?
Mouse Picking
-
- Posts: 1
- Joined: Sun Jul 19, 2009 7:43 pm
Re: Mouse Picking
awww but you didn't post where you found it at? I am looking for something like this. My game is going to be oriented like Diablo 2, So I need my character to go where I click.