Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiCollider Class Reference
Inheritance diagram for Obi.ObiCollider:
Obi.ObiColliderBase

Protected Member Functions

override void CreateTracker ()
 
override Component GetUnityCollider (ref bool enabled)
 
override void FindSourceCollider ()
 
- Protected Member Functions inherited from Obi.ObiColliderBase
void CreateRigidbody ()
 
void AddCollider ()
 
void RemoveCollider ()
 

Properties

Collider sourceCollider [get, set]
 The Unity collider that this ObiCollider should mimic. More...
 
ObiDistanceField distanceField [get, set]
 The distance field used by this collider. More...
 
- Properties inherited from Obi.ObiColliderBase
ObiCollisionMaterial CollisionMaterial [get, set]
 
int Filter [get, set]
 
float Thickness [get, set]
 
ObiShapeTracker Tracker [get]
 
ObiColliderHandle Handle [get]
 
IntPtr OniCollider [get]
 
ObiRigidbodyBase Rigidbody [get]
 

Additional Inherited Members

- Public Member Functions inherited from Obi.ObiColliderBase
void UpdateIfNeeded ()
 
- Protected Attributes inherited from Obi.ObiColliderBase
ObiColliderHandle shapeHandle
 
IntPtr oniCollider
 
ObiRigidbodyBase obiRigidbody
 
bool wasUnityColliderEnabled = true
 
bool dirty = false
 
ObiShapeTracker tracker
 

Detailed Description

Add this component to any Collider that you want to be considered by Obi.

Member Function Documentation

override void Obi.ObiCollider.CreateTracker ( )
protectedvirtual

Creates an OniColliderTracker of the appropiate type.

Implements Obi.ObiColliderBase.

Property Documentation

ObiDistanceField Obi.ObiCollider.distanceField
getset

The distance field used by this collider.

Setting a distance field will cause the collider to ignore its m_SourceCollider and use the distance field instead.

Collider Obi.ObiCollider.sourceCollider
getset

The Unity collider that this ObiCollider should mimic.

This is automatically set when you first create the ObiCollider component, but you can override it afterwards.


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