True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

bool TA::CollisionObjectConvex::InitialiseFromPointList (
const Vec3 *   pv3PointList,
int   nNumPoints
 

Call this function to initialise the collision object from a list of points. The point list is used to create a convex hull. The convex hull may then be simplified slightly.

Note:
If this function fails to build a convex hull from the point list, the object will be left empty. Also, if the hull is too complex it will be automatically simplified.
See also:
CollisionObjectConvex::Initialise(), CollisionObjectConvex::InitialiseAsABox(float fSizeX, float fSizeY, float fSizeZ), CollisionObjectConvex::InitialiseAsABox(const AABB& aabb), CollisionObjectConvex::InitialiseAsAnOrientedBox, CollisionObjectConvex::InitialiseFromPlaneList and CollisionObjectConvex::InitialiseFromConvexHull.
Returns:
Returns true on success, false on failure. If creating a convex object from the point list fails, this object will be initialised as a box.
Parameters:
pv3PointList
A pointer to a list of points.
nNumPoints
The number of points in the list specified by pv3PointList.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.