Pressure plate with bullet physics?

Post Reply
Neirdan
Posts: 13
Joined: Thu Jun 13, 2013 8:07 pm

Pressure plate with bullet physics?

Post by Neirdan »

I'm trying to create pressure plates with bullet physics engine.
Basically following this: https://sites.google.com/site/lessonsda ... sure-plate
Place a square mesh over a hole with a trigger inside the hole that has a collision test with the plate.

To create said plate, it requires an upward thrust and a constraint it on the Z axis by setting a max height to avoid the plate flying indefinitely.
Those are the two things I don't know how to do. Any ideas?

Okay for constraints apparently I just have to check the tutorial. http://bulletphysics.org/mediawiki-1.5. ... onstraints

Considering "moving the plate upwards but reacting/falling when some body with a bigger weight is placed on it" will be a bit more difficult.

Edit:

I made it, for those interested;
I made a generic constraint, only allowing the Z vector.
For the impulse, since all forces except gravity are erased after each simulation step, I set up a low negative gravity and the pressure plate has a very low weight.
Post Reply