Code: Select all
// Move the Ball's Position.
vector3df vecPosition = pIAnimatedMeshSceneNodeBall->getPosition();
vector3df vecVelocity = vector3df(-5,0,5);
bool outFalling = false;
core::triangle3df triout;
vector3df vecNewLocation;
vecNewLocation = pISceneCollisionManager->getCollisionResultPosition(s,
vecPosition,
vector3df(10,10, 10),
vecVelocity,
triout,
outFalling, .0005f, vector3df(0, 0, 0));
if (vecNewLocation != vecPosition + vecVelocity)
{
pIAnimatedMeshSceneNodeBall->setScale(vector3df(20,1,1));
}