User Tools

Site Tools


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 SpeedTree SDK and fed to a collision detection system.

Collision Object

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. (Enumeration)


Sphere: A sphere object. The size of the sphere is determined by the 'Radius' value. (Enumeration)

Radius

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

Height

The length of the cylindrical portion of a capsule collision object. (Height)

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. (String)


Transform

Translation: X, Y, & Z

The position of the collision object along each axis. (Float)

Reset Translation

Sets the collision object back to the default position [0, 0, 0]. (Function)

Rotation: Axis: X, Y, & Z

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

Rotation: Angle

The amount of rotation around the rotation angle. (Degrees)

Reset Rotation

Sets the collision object back to the default angle [0, 0, 1, 90]. (Function)