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

Public Member Functions

void UpdateIfNeeded ()
 

Protected Member Functions

abstract void CreateTracker ()
 
abstract Component GetUnityCollider (ref bool enabled)
 
abstract void FindSourceCollider ()
 
void CreateRigidbody ()
 
void AddCollider ()
 
void RemoveCollider ()
 

Protected Attributes

ObiColliderHandle shapeHandle
 
IntPtr oniCollider
 
ObiRigidbodyBase obiRigidbody
 
bool wasUnityColliderEnabled = true
 
bool dirty = false
 
ObiShapeTracker tracker
 

Properties

ObiCollisionMaterial CollisionMaterial [get, set]
 
int Filter [get, set]
 
float Thickness [get, set]
 
ObiShapeTracker Tracker [get]
 
ObiColliderHandle Handle [get]
 
IntPtr OniCollider [get]
 
ObiRigidbodyBase Rigidbody [get]
 

Detailed Description

Implements common functionality for ObiCollider and ObiCollider2D.

Member Function Documentation

abstract void Obi.ObiColliderBase.CreateTracker ( )
protectedpure virtual

Creates an OniColliderTracker of the appropiate type.

Implemented in Obi.ObiCollider, and Obi.ObiCollider2D.

void Obi.ObiColliderBase.UpdateIfNeeded ( )

Check if the collider transform or its shape have changed any relevant property, and update their Oni counterparts.

Member Data Documentation

ObiShapeTracker Obi.ObiColliderBase.tracker
protected

tracker object used to determine when to update the collider's shape


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