GetNormal
Returns the normal of a colliding object at the collision point. ObjectID should be either one of these: - OBJ_A: The first colliding object - OBJ_B: The second colliding object This function returns the same as GetSegment( objectID ).GetNormal(). However this function may execute a lot faster when the segment information isn't meaningful (the colliding objects don't consist of line segments). Examples Collision collision = ...;
// Get the normal of the first colliding object at the collision point // Vec2D objANormal = collision.GetNormal( OBJ_A ); Other functions of the class Collision
Questions about GetNormal? Click here. |