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

Public Member Functions

 ObiPinConstraintsBatch (ObiPinConstraintsData constraints=null)
 
void AddConstraint (int solverIndex, ObiColliderBase body, Vector3 offset, Quaternion restDarboux, float linearCompliance, float rotationalCompliance, float breakThreshold)
 
override void Clear ()
 
override void GetParticlesInvolved (int index, List< int > particles)
 
override void Merge (ObiActor actor, IObiConstraintsBatch other)
 
override void AddToSolver (ObiSolver solver)
 
override void RemoveFromSolver (ObiSolver solver)
 
- Public Member Functions inherited from Obi.ObiConstraintsBatch
int GetConstraintIndex (int constraintId)
 
bool IsConstraintActive (int index)
 
bool ActivateConstraint (int constraintIndex)
 
bool DeactivateConstraint (int constraintIndex)
 
void DeactivateAllConstraints ()
 
void RemoveConstraint (int constraintIndex)
 
void ParticlesSwapped (int index, int newIndex)
 

Public Attributes

List< ObiColliderHandlepinBodies = new List<ObiColliderHandle>()
 for each constraint, handle of the pinned collider. More...
 
ObiNativeIntList colliderIndices = new ObiNativeIntList()
 index of the pinned collider in the collider world. More...
 
ObiNativeVector4List offsets = new ObiNativeVector4List()
 Pin position expressed in the attachment's local space. More...
 
ObiNativeQuaternionList restDarbouxVectors = new ObiNativeQuaternionList()
 Rest Darboux vector for each constraint. More...
 
ObiNativeFloatList stiffnesses = new ObiNativeFloatList()
 Compliances of pin constraits. 2 float per constraint (positional and rotational compliance). More...
 
ObiNativeFloatList breakThresholds = new ObiNativeFloatList()
 One float per constraint: break threshold. More...
 
- Public Attributes inherited from Obi.ObiConstraintsBatch
ObiNativeIntList particleIndices = new ObiNativeIntList()
 
ObiNativeFloatList lambdas = new ObiNativeFloatList()
 

Protected Member Functions

override void SwapConstraints (int sourceIndex, int destIndex)
 
- Protected Member Functions inherited from Obi.ObiConstraintsBatch
virtual void CopyConstraint (ObiConstraintsBatch batch, int constraintIndex)
 
void RegisterConstraint ()
 

Protected Attributes

IPinConstraintsBatchImpl m_BatchImpl
 
- Protected Attributes inherited from Obi.ObiConstraintsBatch
List< int > m_IDs = new List<int>()
 
List< int > m_IDToIndex = new List<int>()
 
int m_ConstraintCount = 0
 
int m_ActiveConstraintCount = 0
 
int m_InitialActiveConstraintCount = 0
 

Properties

override Oni.ConstraintType constraintType [get]
 
override IConstraintsBatchImpl implementation [get]
 
- Properties inherited from Obi.ObiConstraintsBatch
int constraintCount [get]
 
int activeConstraintCount [get, set]
 
virtual int initialActiveConstraintCount [get, set]
 
abstract Oni.ConstraintType constraintType [get]
 
abstract IConstraintsBatchImpl implementation [get]
 
- Properties inherited from Obi.IObiConstraintsBatch
int constraintCount [get]
 
int activeConstraintCount [get, set]
 
int initialActiveConstraintCount [get, set]
 
Oni.ConstraintType constraintType [get]
 
IConstraintsBatchImpl implementation [get]
 

Member Data Documentation

ObiNativeFloatList Obi.ObiPinConstraintsBatch.breakThresholds = new ObiNativeFloatList()

One float per constraint: break threshold.

ObiNativeIntList Obi.ObiPinConstraintsBatch.colliderIndices = new ObiNativeIntList()

index of the pinned collider in the collider world.

ObiNativeVector4List Obi.ObiPinConstraintsBatch.offsets = new ObiNativeVector4List()

Pin position expressed in the attachment's local space.

List<ObiColliderHandle> Obi.ObiPinConstraintsBatch.pinBodies = new List<ObiColliderHandle>()

for each constraint, handle of the pinned collider.

ObiNativeQuaternionList Obi.ObiPinConstraintsBatch.restDarbouxVectors = new ObiNativeQuaternionList()

Rest Darboux vector for each constraint.

ObiNativeFloatList Obi.ObiPinConstraintsBatch.stiffnesses = new ObiNativeFloatList()

Compliances of pin constraits. 2 float per constraint (positional and rotational compliance).


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