The CollisionSkin type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | CollisionSkin()()()() |
Constructor
|
![]() | CollisionSkin(Body) |
Constructor
|
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.) |
Fields
Name | Description | |
---|---|---|
![]() | WorldBoundingBox |
Bounding box in world reference frame - includes all children too
|
Properties
Name | Description | |
---|---|---|
![]() | Collisions |
Intended for internal use by Physics - we get told about the
collisions we're involved with. Used to resolve penetrations.
|
![]() | CollisionSystem |
Gets or Sets collSystem
|
![]() | NewOrient |
Gets transformNew.Orientation
|
![]() | NewPosition |
Gets transformNew.Position
|
![]() | NewTransform |
Gets transformNew
|
![]() | NonCollidables |
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
|
![]() | NumPrimitives |
Returns the number of registered primitives
|
![]() | OldOrient |
Gets transformOld.Orientation
|
![]() | OldPosition |
Gets tranformOld.Position
|
![]() | OldTransform |
Gets transformOld
|
![]() | Owner |
Get or Set the owner of a skin.
|
Events
Name | Description | |
---|---|---|
![]() | callbackFn |
callbackFn
|