Hi,
I'm currently making a 3D version of Pong in which I have one paddle that should be controlled by the user with the arrow keys. My renderer is open-source since I'm not an experienced progammer. I wanted to integrate Bullet Physics and found out that the paddle should be flagged as a kinematic body and that I should use Motionstate to update its position in Bullet. I have been searching for tutorials all over the net and tried to study the sample code from the Ccd demo, but can't make it work. Can anyone tell me how I should accomplish this?
Thanks in advance.
simple question about kinematic body
-
- Posts: 5
- Joined: Sat Feb 12, 2011 3:13 pm
-
- Posts: 44
- Joined: Fri Dec 18, 2009 6:06 pm
- Location: Montreal
Re: simple question about kinematic body
I have done similar work before. There is a post here about it (see link below). it should help you will all the problems its title is "Switching Rigid Body to a Kinematic At Runtime user control" in case the link does not work.
http://www.bulletphysics.org/Bullet/ph ... 7&start=0
if you have question posit in it.. and i will try to answer/help.
http://www.bulletphysics.org/Bullet/ph ... 7&start=0
if you have question posit in it.. and i will try to answer/help.
-
- Posts: 5
- Joined: Sat Feb 12, 2011 3:13 pm
Re: simple question about kinematic body
Cool, thanks for the help Garibalde!
If I encounter problems, I will post them in your thread.
If I encounter problems, I will post them in your thread.