|
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. |
|