The CollisionSkin type exposes the following members.

Constructors

  NameDescription
Public methodCollisionSkin()()()()
Constructor
Public methodCollisionSkin(Body)
Constructor

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

Fields

  NameDescription
Public fieldWorldBoundingBox
Bounding box in world reference frame - includes all children too

Properties

  NameDescription
Public propertyCollisions
Intended for internal use by Physics - we get told about the collisions we're involved with. Used to resolve penetrations.
Public propertyCollisionSystem
Gets or Sets collSystem
Public propertyNewOrient
Gets transformNew.Orientation
Public propertyNewPosition
Gets transformNew.Position
Public propertyNewTransform
Gets transformNew
Public propertyNonCollidables
Each skin can contain a list of other skins it shouldn't collide with. You only need to add skins from another "family" - i.e. don't explicitly add children/parents
Public propertyNumPrimitives
Returns the number of registered primitives
Public propertyOldOrient
Gets transformOld.Orientation
Public propertyOldPosition
Gets tranformOld.Position
Public propertyOldTransform
Gets transformOld
Public propertyOwner
Get or Set the owner of a skin.

Events

  NameDescription
Public eventcallbackFn
callbackFn

See Also