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

Public Member Functions

 ObiStretchShearConstraintsBatch (ObiStretchShearConstraintsData constraints=null)
 
void AddConstraint (Vector2Int indices, int orientationIndex, float restLength, Quaternion restOrientation)
 
override void Clear ()
 
float GetRestLength (int index)
 
void SetRestLength (int index, float restLength)
 
ParticlePair GetParticleIndices (int index)
 
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

ObiNativeIntList orientationIndices = new ObiNativeIntList()
 index of particle orientation for each constraint. More...
 
ObiNativeFloatList restLengths = new ObiNativeFloatList()
 rest distance for each constraint. More...
 
ObiNativeQuaternionList restOrientations = new ObiNativeQuaternionList()
 rest orientation for each constraint. More...
 
ObiNativeVector3List stiffnesses = new ObiNativeVector3List()
 3 compliance values per constraint, one for each local axis (x,y,z). 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

IStretchShearConstraintsBatchImpl 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

ObiNativeIntList Obi.ObiStretchShearConstraintsBatch.orientationIndices = new ObiNativeIntList()

index of particle orientation for each constraint.

ObiNativeFloatList Obi.ObiStretchShearConstraintsBatch.restLengths = new ObiNativeFloatList()

rest distance for each constraint.

ObiNativeQuaternionList Obi.ObiStretchShearConstraintsBatch.restOrientations = new ObiNativeQuaternionList()

rest orientation for each constraint.

ObiNativeVector3List Obi.ObiStretchShearConstraintsBatch.stiffnesses = new ObiNativeVector3List()

3 compliance values per constraint, one for each local axis (x,y,z).


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