Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
MathUtils::mRayQuadCollide Function
Syntax
C++
bool mRayQuadCollide(const Quad & quad, const Ray & ray, Point2F * outUV = NULL, F32 * outT = NULL);

Returns the uv coords and time of intersection between a ray and a quad. 

@param quad The quad. @param ray The ray. @param outUV The optional output UV coords of the intersection. @param outT The optional output time of intersection. 

@return Returns true if a collision occurs. 

 

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!