Search found 3 matches
- Tue May 31, 2011 11:36 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Kinect to Terain Heightfield for interaction
- Replies: 2
- Views: 2935
Kinect to Terain Heightfield for interaction
I'm using a ceiling-mounted Kinect camera to acquire 3d data and translating it into a btHeightfieldTerrainShape by updating its data every frame. The idea is to use the heightfield terrain to represent (roughly) human figures in a space and allow them to interact with other rigid body elements in t...
- Sun May 29, 2011 11:07 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: constraining rotation in one direction
- Replies: 2
- Views: 2518
Re: constraining rotation in one direction
I tried using your first idea and run this in the main loop, before running the physics engine. Seems to work fairly well and constrain rotation to clockwise only--will have to do some more testing. I'm sure there's a more efficient way though. if(hinge) { float ca = hinge->getHingeAngle(); // curre...
- Tue May 24, 2011 4:45 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: constraining rotation in one direction
- Replies: 2
- Views: 2518
constraining rotation in one direction
I'm using a hinge constraint to limit to rotation about the Y axis, but I'd like to limit it to clockwise only. I couldn't find any options for directional limitation, though. Is that something I'd have to write myself? How would I go about doing so?