I have the following scenario:
O
___________
I have a plane, that is more than big enough to fit the Object above it.
I place the Object around 300 points above the plane and do the following:
// Vector to define Ray
SimpleVector trans = new SimpleVector( 0, 1, 0);
// Check for other object
int id = object.checkForCollision( trans, 30);
// If no object, move
if( id == Object3D.NO_OBJECT)
{
object.translate( trans);
}
I tried "every" setting with collisionstype (let plane check other, let plane check self let plane check both, same with object and both checking) and the objects falls through the plane all the time.
I am very new to the collision thing and red your documentation in the manual about it.
I wanted to use this type of collison-detecting, as the ellipsoid one let me flow down every floor that is not 100% straight.
Am I using the checkForCollision wrong?