The CollisionSkin type exposes the following members.

Methods

  NameDescription
Public methodAddPrimitive(Primitive, MaterialProperties)
Adds a Primitive
Public methodAddPrimitive(Primitive, Int32)
Adds a Primitive
Public methodApplyLocalTransform
Applies a transform to the local primitives (e.g. to shift everything after calculating CoM etc)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMassProperties(PrimitiveProperties, Single%, Vector3%, Matrix%, Matrix%)
Helper to calculate the combined mass, centre of mass, and inertia tensor about the origin and the CoM (for the local primitives) primitiveProperties indicates the properties used for all primitives - so the mass is the total mass
Public methodGetMassProperties(array<PrimitiveProperties>[]()[][], Single%, Vector3%, Matrix%, Matrix%)
Helper to calculate the combined mass, centre of mass, and inertia tensor about the origin and the CoM (for the local primitives) primitiveProperties is an array of properties - must be the same number as there are primitives
Public methodGetMaterialID
Gets the material ID for a primitive
Public methodGetMaterialProperties
Returns the material properties for a primitive
Public methodGetPrimitiveLocal
Gets the primitive in local space
Public methodGetPrimitiveNewWorld
Gets the new value of primitive in world space
Public methodGetPrimitiveOldWorld
Gets the old value of primitive in world space
Public methodGetSurfaceArea
Returns the total surface area
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVolume
Returns the total volume
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnCollisionEvent
OnCollisionEvent
Public methodRemoveAllPrimitives
Removes and destroys all primitives
Public methodSegmentIntersect
Every skin must support a ray/segment intersection test - operates on the new value of the primitives
Public methodSetMaterialProperties
Sets the material properties for a primitive. In this case the material ID will be automatically set to USER_DEFINED
Public methodSetNewTransform
Gets called during the collision detection
Public methodSetOldTransform
Gets called during the collision detection
Public methodSetTransform
SetTransform
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUpdateWorldBoundingBox
Updates bounding volume of this skin

Extension Methods

  NameDescription
Public Extension MethodGetLocalSkinWireframe
GetLocalSkinWireframe
(Defined by BodyRenderExtensions.)

See Also