Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Paradox.Physics.Collider Class Reference
Inheritance diagram for SiliconStudio.Paradox.Physics.Collider:
SiliconStudio.Paradox.Physics.Character SiliconStudio.Paradox.Physics.RigidBody

Public Member Functions

 Collider (ColliderShape collider)
 Initializes a new instance of the Collider class. More...
 
virtual void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
void Activate (bool forceActivation=false)
 Attempts to awake the collider. More...
 

Properties

bool Enabled [get, set]
 Gets or sets a value indicating whether this Collider is enabled. More...
 
bool CanSleep [get, set]
 Gets or sets a value indicating whether this instance can sleep. More...
 
bool IsActive [get]
 Gets a value indicating whether this instance is active (awake). More...
 
float Restitution [get, set]
 Gets or sets the restitution. More...
 
float Friction [get, set]
 Gets or sets the friction. More...
 
float RollingFriction [get, set]
 Gets or sets the rolling friction. More...
 
float CcdMotionThreshold [get, set]
 Gets or sets the CCD motion threshold. More...
 
float CcdSweptSphereRadius [get, set]
 Gets or sets the CCD swept sphere radius. More...
 
bool IsTrigger [get, set]
 Gets or sets a value indicating whether this instance is a trigger. More...
 
Matrix PhysicsWorldTransform [get, set]
 Gets the physics world transform. More...
 
ColliderShape ColliderShape [get, set]
 Gets the collider shape. More...
 
bool ContactsAlwaysValid [get, set]
 Gets or sets a value indicating whether the Contacts list needs to be always valid. This is used to improve performance in the case the list is not needed. More...
 
EventHandler< CollisionArgsOnFirstContactBegin
 Occurs when the first contant with a collider begins. More...
 
EventHandler< CollisionArgsOnContactBegin
 Occurs when a contact begins (there could be multiple contacts and contact points). More...
 
EventHandler< CollisionArgsOnContactChange
 Occurs when a contact changed. More...
 
EventHandler< CollisionArgsOnLastContactEnd
 Occurs when the last contact with a collider happened. More...
 
EventHandler< CollisionArgsOnContactEnd
 Occurs when a contact ended. More...
 
FastList< ContactContacts [get]
 Gets the contacts. More...
 
string Tag [get, set]
 Gets or sets the tag. More...
 
object EntityObject [get, set]
 Gets or sets the entity object. Should always cast this as an Entity More...
 

Detailed Description

Definition at line 10 of file Collider.cs.

Constructor & Destructor Documentation

SiliconStudio.Paradox.Physics.Collider.Collider ( ColliderShape  collider)

Initializes a new instance of the Collider class.

Parameters
colliderThe collider.

Definition at line 16 of file Collider.cs.

Member Function Documentation

void SiliconStudio.Paradox.Physics.Collider.Activate ( bool  forceActivation = false)

Attempts to awake the collider.

Parameters
forceActivationif set to true [force activation].

Definition at line 104 of file Collider.cs.

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

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

Reimplemented in SiliconStudio.Paradox.Physics.RigidBody, and SiliconStudio.Paradox.Physics.Character.

Definition at line 24 of file Collider.cs.

Property Documentation

bool SiliconStudio.Paradox.Physics.Collider.CanSleep
getset

Gets or sets a value indicating whether this instance can sleep.

true if this instance can sleep; otherwise, false.

Definition at line 70 of file Collider.cs.

float SiliconStudio.Paradox.Physics.Collider.CcdMotionThreshold
getset

Gets or sets the CCD motion threshold.

The CCD motion threshold.

Definition at line 170 of file Collider.cs.

float SiliconStudio.Paradox.Physics.Collider.CcdSweptSphereRadius
getset

Gets or sets the CCD swept sphere radius.

The CCD swept sphere radius.

Definition at line 188 of file Collider.cs.

ColliderShape SiliconStudio.Paradox.Physics.Collider.ColliderShape
getset

Gets the collider shape.

The collider shape.

Definition at line 244 of file Collider.cs.

FastList<Contact> SiliconStudio.Paradox.Physics.Collider.Contacts
get

Gets the contacts.

The contacts.

Definition at line 429 of file Collider.cs.

bool SiliconStudio.Paradox.Physics.Collider.ContactsAlwaysValid
getset

Gets or sets a value indicating whether the Contacts list needs to be always valid. This is used to improve performance in the case the list is not needed.

true if [contacts always valid]; otherwise, false.

Definition at line 253 of file Collider.cs.

bool SiliconStudio.Paradox.Physics.Collider.Enabled
getset

Gets or sets a value indicating whether this Collider is enabled.

true if enabled; otherwise, false.

Definition at line 42 of file Collider.cs.

object SiliconStudio.Paradox.Physics.Collider.EntityObject
getset

Gets or sets the entity object. Should always cast this as an Entity

The entity object.

Definition at line 451 of file Collider.cs.

float SiliconStudio.Paradox.Physics.Collider.Friction
getset

Gets or sets the friction.

The friction.

Definition at line 134 of file Collider.cs.

bool SiliconStudio.Paradox.Physics.Collider.IsActive
get

Gets a value indicating whether this instance is active (awake).

true if this instance is active; otherwise, false.

Definition at line 93 of file Collider.cs.

bool SiliconStudio.Paradox.Physics.Collider.IsTrigger
getset

Gets or sets a value indicating whether this instance is a trigger.

true if this instance is trigger; otherwise, false.

Definition at line 206 of file Collider.cs.

EventHandler<CollisionArgs> SiliconStudio.Paradox.Physics.Collider.OnContactBegin
addremove

Occurs when a contact begins (there could be multiple contacts and contact points).

Definition at line 302 of file Collider.cs.

EventHandler<CollisionArgs> SiliconStudio.Paradox.Physics.Collider.OnContactChange
addremove

Occurs when a contact changed.

Definition at line 333 of file Collider.cs.

EventHandler<CollisionArgs> SiliconStudio.Paradox.Physics.Collider.OnContactEnd
addremove

Occurs when a contact ended.

Definition at line 395 of file Collider.cs.

EventHandler<CollisionArgs> SiliconStudio.Paradox.Physics.Collider.OnFirstContactBegin
addremove

Occurs when the first contant with a collider begins.

Definition at line 271 of file Collider.cs.

EventHandler<CollisionArgs> SiliconStudio.Paradox.Physics.Collider.OnLastContactEnd
addremove

Occurs when the last contact with a collider happened.

Definition at line 364 of file Collider.cs.

Matrix SiliconStudio.Paradox.Physics.Collider.PhysicsWorldTransform
getset

Gets the physics world transform.

The physics world transform.

Definition at line 227 of file Collider.cs.

float SiliconStudio.Paradox.Physics.Collider.Restitution
getset

Gets or sets the restitution.

The restitution.

Definition at line 116 of file Collider.cs.

float SiliconStudio.Paradox.Physics.Collider.RollingFriction
getset

Gets or sets the rolling friction.

The rolling friction.

Definition at line 152 of file Collider.cs.

string SiliconStudio.Paradox.Physics.Collider.Tag
getset

Gets or sets the tag.

The tag.

Definition at line 442 of file Collider.cs.


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