3D: Kinematic body
Posted: Mon Jan 05, 2015 11:33 am
Heyho,
yes, kinematic body.
There are 3 types of OGRE Bullet physicsbodies:
-dynamic bodies (pos. mass; Can move and collide with other objects)
-static body (zero mass; Can´t move, but collide)
Those are the built-in bodytypes. But there is one more, especially for characters:
-kinematic bodies (Zero mass; Can move and be animated; Can push away objects, but can´t be pushed itself (Except it can´t fall through ground, go through walls and stuff like that))
For this, see the usermanual of bullet; page 24 (or rigid Body Dynamics)
Example 1:
A box named Bob (The Character) was hit by a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Change of Impulse of ball.
-kinematic Body: Change of Impulse of ball.
Example 2:
A box named Bob moves and hits a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Not able to move a static Body.
-kinematic Body: Change of Impulse of ball.
Example 3:
A box named Bob is animated so it can hit a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Not able to animate a static Body.
-kinematic Body: Change of Impulse of ball.
A kinematic Body is an static Body with more functions.
For animated kinematic Body entities we also Need this:
body ->setActivationState(DISABLE_DEACTIVATION);
http://bulletphysics.org/Bullet/BulletF ... dBody.html
yes, kinematic body.
There are 3 types of OGRE Bullet physicsbodies:
-dynamic bodies (pos. mass; Can move and collide with other objects)
-static body (zero mass; Can´t move, but collide)
Those are the built-in bodytypes. But there is one more, especially for characters:
-kinematic bodies (Zero mass; Can move and be animated; Can push away objects, but can´t be pushed itself (Except it can´t fall through ground, go through walls and stuff like that))
For this, see the usermanual of bullet; page 24 (or rigid Body Dynamics)
Example 1:
A box named Bob (The Character) was hit by a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Change of Impulse of ball.
-kinematic Body: Change of Impulse of ball.
Example 2:
A box named Bob moves and hits a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Not able to move a static Body.
-kinematic Body: Change of Impulse of ball.
Example 3:
A box named Bob is animated so it can hit a ball (dynamic).
-dynamic Body: Change of Impulse of ball and character
-static Body: Not able to animate a static Body.
-kinematic Body: Change of Impulse of ball.
A kinematic Body is an static Body with more functions.
For animated kinematic Body entities we also Need this:
body ->setActivationState(DISABLE_DEACTIVATION);
http://bulletphysics.org/Bullet/BulletF ... dBody.html