Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Physics.ColliderShape Class Reference
Inheritance diagram for SiliconStudio.Paradox.Physics.ColliderShape:
SiliconStudio.Paradox.Physics.Box2DColliderShape SiliconStudio.Paradox.Physics.BoxColliderShape SiliconStudio.Paradox.Physics.CapsuleColliderShape SiliconStudio.Paradox.Physics.CompoundColliderShape SiliconStudio.Paradox.Physics.ConvexHullColliderShape SiliconStudio.Paradox.Physics.CylinderColliderShape SiliconStudio.Paradox.Physics.SphereColliderShape SiliconStudio.Paradox.Physics.StaticPlaneColliderShape

Public Member Functions

virtual void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
void UpdateLocalTransformations ()
 Updates the local transformations, required if you change LocalOffset and/or LocalRotation. More...
 

Public Attributes

Vector3 LocalOffset
 The local offset More...
 
Quaternion LocalRotation = Quaternion.Identity
 The local rotation More...
 

Properties

ColliderShapeTypes Type [get, set]
 Gets or sets the type. More...
 
Matrix PositiveCenterMatrix [get, set]
 Gets the positive center matrix. More...
 
Matrix NegativeCenterMatrix [get, set]
 Gets the negative center matrix. More...
 
Vector3 Scaling [get, set]
 Gets or sets the scaling. Make sure that you manually created and assigned an exclusive ColliderShape to the Collider otherwise since the engine shares shapes among many Colliders, all the colliders will be scaled. Please note that this scaling has no relation to the TransformationComponent scaling. More...
 
bool Is2D [get, set]
 Gets a value indicating whether the collider shape is 2D. More...
 

Detailed Description

Definition at line 11 of file ColliderShape.cs.

Member Function Documentation

virtual void SiliconStudio.Paradox.Physics.ColliderShape.Dispose ( )
virtual

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Reimplemented in SiliconStudio.Paradox.Physics.CompoundColliderShape.

Definition at line 16 of file ColliderShape.cs.

void SiliconStudio.Paradox.Physics.ColliderShape.UpdateLocalTransformations ( )

Updates the local transformations, required if you change LocalOffset and/or LocalRotation.

Definition at line 44 of file ColliderShape.cs.

References SiliconStudio.Core.Mathematics.Matrix.Translation().

Member Data Documentation

Vector3 SiliconStudio.Paradox.Physics.ColliderShape.LocalOffset

The local offset

Definition at line 34 of file ColliderShape.cs.

Quaternion SiliconStudio.Paradox.Physics.ColliderShape.LocalRotation = Quaternion.Identity

The local rotation

Definition at line 39 of file ColliderShape.cs.

Property Documentation

bool SiliconStudio.Paradox.Physics.ColliderShape.Is2D
getset

Gets a value indicating whether the collider shape is 2D.

true if [is2 d]; otherwise, false.

Definition at line 107 of file ColliderShape.cs.

Referenced by SiliconStudio.Paradox.Physics.PhysicsEngine.CreateRigidBody().

Matrix SiliconStudio.Paradox.Physics.ColliderShape.NegativeCenterMatrix
getset

Gets the negative center matrix.

The negative center matrix.

Definition at line 78 of file ColliderShape.cs.

Matrix SiliconStudio.Paradox.Physics.ColliderShape.PositiveCenterMatrix
getset

Gets the positive center matrix.

The positive center matrix.

Definition at line 70 of file ColliderShape.cs.

Vector3 SiliconStudio.Paradox.Physics.ColliderShape.Scaling
getset

Gets or sets the scaling. Make sure that you manually created and assigned an exclusive ColliderShape to the Collider otherwise since the engine shares shapes among many Colliders, all the colliders will be scaled. Please note that this scaling has no relation to the TransformationComponent scaling.

The scaling.

Definition at line 89 of file ColliderShape.cs.

ColliderShapeTypes SiliconStudio.Paradox.Physics.ColliderShape.Type
getset

Gets or sets the type.

The type.

Definition at line 29 of file ColliderShape.cs.


The documentation for this class was generated from the following file: