The CollisionSkin type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AddPrimitive(Primitive, MaterialProperties) |
Adds a Primitive
|
![]() | AddPrimitive(Primitive, Int32) |
Adds a Primitive
|
![]() | ApplyLocalTransform |
Applies a transform to the local primitives (e.g. to shift
everything after calculating CoM etc)
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetMassProperties(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
|
![]() | GetMassProperties(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
|
![]() | GetMaterialID |
Gets the material ID for a primitive
|
![]() | GetMaterialProperties |
Returns the material properties for a primitive
|
![]() | GetPrimitiveLocal |
Gets the primitive in local space
|
![]() | GetPrimitiveNewWorld |
Gets the new value of primitive in world space
|
![]() | GetPrimitiveOldWorld |
Gets the old value of primitive in world space
|
![]() | GetSurfaceArea |
Returns the total surface area
|
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | GetVolume |
Returns the total volume
|
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | OnCollisionEvent |
OnCollisionEvent
|
![]() | RemoveAllPrimitives |
Removes and destroys all primitives
|
![]() | SegmentIntersect |
Every skin must support a ray/segment intersection test -
operates on the new value of the primitives
|
![]() | SetMaterialProperties |
Sets the material properties for a primitive. In this case the
material ID will be automatically set to USER_DEFINED
|
![]() | SetNewTransform |
Gets called during the collision detection
|
![]() | SetOldTransform |
Gets called during the collision detection
|
![]() | SetTransform |
SetTransform
|
![]() | ToString | (Inherited from Object.) |
![]() | UpdateWorldBoundingBox |
Updates bounding volume of this skin
|
Extension Methods
Name | Description | |
---|---|---|
![]() | GetLocalSkinWireframe |
GetLocalSkinWireframe
(Defined by BodyRenderExtensions.) |