Collision Object

An arbitrary number of sphere and capsule collision objects can be added to a tree. The transforms of these objects can be accessed via the SpeedTreeRT API and fed to a collision detection system.

Collision Object

enumeration Type

Capsule

A cylinder capped with hemispheres. The length of the cylinder is equal to the Height value while the radius of each hemisphere is equal to the Radius value.

Sphere

A sphere object. The size of the sphere is determined by the Radius value.

float Radius

The radius of a sphere collision object or the hemispherical caps of a capsule collision object.

height Height

The length of the cylindrical portion of a capsule collision object.

string User Data

The length of the cylindrical portion of a capsule collision object.

string Extra Data

A custom string can be included with each collision object.

Transform

float Translation: X, Y, & Z

The position of the collision object along each axis.

percentage Rotation: Axis: X, Y, & Z

The X,Y, and Z components of the Rotation: Angle.

degrees Rotation: Angle

The amount of rotation around the rotation angle.