Collision Objects

Core Library

SpeedTree uses capsules as collision objects, providing a cruder representation of a tree object's shape than its detailed geometry. They have no polygonal resolution associated with them, rather, they are mathematical representations, free to be passed into the collision-handling system in your application.

The following code shows how to access the collision objects embedded in a CCore object, assuming it has been loaded.









The CForest object (in the Forest library) has a function, CollisionAdjust(), that will provide the functionality necessary to avoid running through a series of tree models. It works only within the SpeedTree framework.