Previous | Up | Next |
Collision test between objects A and B.Parameters
This function does not test the objects’ descendence, but only the specified objects.
The 3D objects must each use a topology having an exact collision model. They can also share the same topology.
The collision test is performed on the displacement of A indicated by the given (floating-point) expressed in the global space.
Returns nil if there is no collision or if the mesh used by one of the objects does not have an exact collision model.
Otherwise a (floating-point) vector is returned : it is collinear with the displacement vector and gives the displacement up to the point of collision.
[F F F] M3testExactColl ( S3d _session_ H3d _A_ H3d _B_ [F F F] _translation_ )
Return value
_session_ 3D Session _A_ A Object _B_ B Object _translation_ Translation vector of A
Maximum' translation vector if successful, otherwise nil