protected bool IsReallyTheFloor(Collidable element) { TGCVector3 directionOfCollision = new TGCVector3(0, -1f, 0); TgcRay ray = new TgcRay(); ray.Origin = this.auto.GetLastPosition(); ray.Direction = directionOfCollision; TGCPlane plane = element.GetPlaneOfCollision(ray, this.auto); TGCVector3 normal = new TGCVector3(0, 1, 0); if (normal != new TGCVector3(0, 1, 0)) { return(false); } return(true); }