![]() |
Paradox Game Engine
v1.0.0 beta06
|
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< CollisionArgs > | OnFirstContactBegin |
Occurs when the first contant with a collider begins. More... | |
EventHandler< CollisionArgs > | OnContactBegin |
Occurs when a contact begins (there could be multiple contacts and contact points). More... | |
EventHandler< CollisionArgs > | OnContactChange |
Occurs when a contact changed. More... | |
EventHandler< CollisionArgs > | OnLastContactEnd |
Occurs when the last contact with a collider happened. More... | |
EventHandler< CollisionArgs > | OnContactEnd |
Occurs when a contact ended. More... | |
FastList< Contact > | Contacts [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... | |
Definition at line 10 of file Collider.cs.
SiliconStudio.Paradox.Physics.Collider.Collider | ( | ColliderShape | collider | ) |
Initializes a new instance of the Collider class.
collider | The collider. |
Definition at line 16 of file Collider.cs.
void SiliconStudio.Paradox.Physics.Collider.Activate | ( | bool | forceActivation = false | ) |
Attempts to awake the collider.
forceActivation | if set to true [force activation]. |
Definition at line 104 of file Collider.cs.
|
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.
|
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.
|
getset |
Gets or sets the CCD motion threshold.
The CCD motion threshold.
Definition at line 170 of file Collider.cs.
|
getset |
Gets or sets the CCD swept sphere radius.
The CCD swept sphere radius.
Definition at line 188 of file Collider.cs.
|
getset |
|
get |
|
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.
|
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.
|
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.
|
getset |
|
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.
|
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.
|
addremove |
Occurs when a contact begins (there could be multiple contacts and contact points).
Definition at line 302 of file Collider.cs.
|
addremove |
Occurs when a contact changed.
Definition at line 333 of file Collider.cs.
|
addremove |
Occurs when a contact ended.
Definition at line 395 of file Collider.cs.
|
addremove |
Occurs when the first contant with a collider begins.
Definition at line 271 of file Collider.cs.
|
addremove |
Occurs when the last contact with a collider happened.
Definition at line 364 of file Collider.cs.
|
getset |
Gets the physics world transform.
The physics world transform.
Definition at line 227 of file Collider.cs.
|
getset |
|
getset |
Gets or sets the rolling friction.
The rolling friction.
Definition at line 152 of file Collider.cs.
|
getset |