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

Classes

struct  PinholeEdge
 

Public Member Functions

 ObiPinholeConstraintsBatch (ObiPinholeConstraintsData constraints=null)
 
void AddConstraint (PinholeEdge edge, PinholeEdge firstEdge, PinholeEdge lastEdge, ObiActor actor, ObiColliderBase body, Vector3 offset, float compliance, float friction, float motorSpeed, float motorForce, bool clampAtEnds)
 
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 ActivateAllConstraints ()
 
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...
 
List< ObiActorpinActors = new List<ObiActor>()
 for each constraint, reference to the actor pinned. More...
 
ObiNativeIntList colliderIndices = new ObiNativeIntList()
 index of the pinned collider in the collider world. More...
 
ObiNativeVector4List offsets = new ObiNativeVector4List()
 Pinhole position expressed in the attachment's local space. More...
 
ObiNativeFloatList edgeMus = new ObiNativeFloatList()
 
ObiNativeIntList edgeRanges = new ObiNativeIntList()
 Edge range as 2 ints (first edge, last edge) for each constraint. More...
 
ObiNativeFloatList edgeRangeMus = new ObiNativeFloatList()
 Min/max cooridnate in each of the first and last edges as 2 floats for each constraint. More...
 
ObiNativeFloatList parameters = new ObiNativeFloatList()
 Parameters of pinhole constraints. 5 floats per constraint (compliance, friction, motor speed, motor force and normalized coordinate along edge). More...
 
ObiNativeFloatList relativeVelocities = new ObiNativeFloatList()
 Relative velocities between rope and pinhole. 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

IPinholeConstraintsBatchImpl 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.ObiPinholeConstraintsBatch.colliderIndices = new ObiNativeIntList()

index of the pinned collider in the collider world.

ObiNativeFloatList Obi.ObiPinholeConstraintsBatch.edgeMus = new ObiNativeFloatList()

ObiNativeFloatList Obi.ObiPinholeConstraintsBatch.edgeRangeMus = new ObiNativeFloatList()

Min/max cooridnate in each of the first and last edges as 2 floats for each constraint.

ObiNativeIntList Obi.ObiPinholeConstraintsBatch.edgeRanges = new ObiNativeIntList()

Edge range as 2 ints (first edge, last edge) for each constraint.

ObiNativeVector4List Obi.ObiPinholeConstraintsBatch.offsets = new ObiNativeVector4List()

Pinhole position expressed in the attachment's local space.

ObiNativeFloatList Obi.ObiPinholeConstraintsBatch.parameters = new ObiNativeFloatList()

Parameters of pinhole constraints. 5 floats per constraint (compliance, friction, motor speed, motor force and normalized coordinate along edge).

List<ObiActor> Obi.ObiPinholeConstraintsBatch.pinActors = new List<ObiActor>()

for each constraint, reference to the actor pinned.

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

for each constraint, handle of the pinned collider.

ObiNativeFloatList Obi.ObiPinholeConstraintsBatch.relativeVelocities = new ObiNativeFloatList()

Relative velocities between rope and pinhole.


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