Dragging objects with the mouse

User avatar
LukasBanana
Posts: 1
Joined: Mon Jun 25, 2012 1:24 pm

Dragging objects with the mouse

Post by LukasBanana »

Hi there,
in all Bullet Physics Demos you can drag the physics objects with the mouse. But I can't find the code where this is implemented.
I can imagine that this is in a 'common' or 'base' part for the demos because it is used in every demo.
Thanks for help in advance :-)
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: Dragging objects with the mouse

Post by xexuxjy »

Have a look in DemoApplication.cpp (under demos opengl for example) - you're looking for the pick constraint code.