NewtonWorldConvexCastReturnInfo

From Newton Wiki
Jump to: navigation, search

Used By

NewtonWorldConvexCast

Structure

    typedef struct NewtonWorldConvexCastReturnInfo
	{
		dFloat m_point[4];						// collision point in global space
		dFloat m_normal[4];						// surface normal at collision point in global space
		dLong m_contactID;						// collision ID at contact point
		const NewtonBody* m_hitBody;			// body hit at contact point
		dFloat m_penetration;                   // contact penetration at collision point
	} NewtonWorldConvexCastReturnInfo;

Remarks

ContactID is the id of the shape at the conatct point, for a collision tree it will be the ID of the face, in a compound it will be the ID of the subshape, in a heightfield will be the id of the cell.