Vertical static planes
Posted: Mon Oct 02, 2006 9:17 am
I've started my new game with bullet
And discover something strange with vertical static planes.
Situation:
Room built of 5 static planes. Top, Bottom, Left, Right and Rear.
Gravity: btVector3(0, -9.8f, 0)
SPHERE inside the Room. SPHERE has some starting linear velocity. SPHERE is jumping inside the room reflecting from static planes. It reflects OK from Top and Bottom horizontal planes. But when it touches vertical wall, it does not reflect correctly. It is "glued" to vertical wall and jumps in vertical direction near the wall.
Sometimes also SPHERE becomes to gain energy from "nothing" (it jumps faster and faster). But it depends. I think it happends when Restitution=1
Situation:
Room built of 5 static planes. Top, Bottom, Left, Right and Rear.
Gravity: btVector3(0, -9.8f, 0)
SPHERE inside the Room. SPHERE has some starting linear velocity. SPHERE is jumping inside the room reflecting from static planes. It reflects OK from Top and Bottom horizontal planes. But when it touches vertical wall, it does not reflect correctly. It is "glued" to vertical wall and jumps in vertical direction near the wall.
Sometimes also SPHERE becomes to gain energy from "nothing" (it jumps faster and faster). But it depends. I think it happends when Restitution=1