![]() |
Obi
7.0.5
Unified particle physics for Unity
|
Public Member Functions | |
| ObiShapeMatchingConstraintsBatch (ObiShapeMatchingConstraintsData constraints=null) | |
| void | AddConstraint (int[] indices, bool isExplicit) |
| override void | Clear () |
| override void | GetParticlesInvolved (int index, List< int > particles) |
| void | RemoveParticleFromConstraint (int constraintIndex, int particleIndex) |
| override void | Merge (ObiActor actor, IObiConstraintsBatch other) |
| override void | AddToSolver (ObiSolver solver) |
| override void | RemoveFromSolver (ObiSolver solver) |
| void | RecalculateRestShapeMatching () |
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 | |
| ObiNativeIntList | firstIndex = new ObiNativeIntList() |
| index of the first particle in each constraint. More... | |
| ObiNativeIntList | numIndices = new ObiNativeIntList() |
| amount of particles in each constraint. More... | |
| ObiNativeIntList | explicitGroup = new ObiNativeIntList() |
| whether the constraint is implicit (0) or explicit (>0). More... | |
| ObiNativeFloatList | materialParameters = new ObiNativeFloatList() |
| 5 floats per constraint: stiffness, plastic yield, creep, recovery and max deformation. More... | |
| ObiNativeVector4List | restComs = new ObiNativeVector4List() |
| rest center of mass for each constraint. More... | |
| ObiNativeVector4List | coms = new ObiNativeVector4List() |
| current center of mass for each constraint. More... | |
| ObiNativeQuaternionList | orientations = new ObiNativeQuaternionList() |
| current best-match orientation for each constraint. More... | |
| ObiNativeMatrix4x4List | linearTransforms = new ObiNativeMatrix4x4List() |
| current best-match linear transform for each constraint. More... | |
| ObiNativeMatrix4x4List | plasticDeformations = new ObiNativeMatrix4x4List() |
| current plastic deformation for each constraint. 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 | |
| IShapeMatchingConstraintsBatchImpl | 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] |
| ObiNativeVector4List Obi.ObiShapeMatchingConstraintsBatch.coms = new ObiNativeVector4List() |
current center of mass for each constraint.
| ObiNativeIntList Obi.ObiShapeMatchingConstraintsBatch.explicitGroup = new ObiNativeIntList() |
whether the constraint is implicit (0) or explicit (>0).
| ObiNativeIntList Obi.ObiShapeMatchingConstraintsBatch.firstIndex = new ObiNativeIntList() |
index of the first particle in each constraint.
| ObiNativeMatrix4x4List Obi.ObiShapeMatchingConstraintsBatch.linearTransforms = new ObiNativeMatrix4x4List() |
current best-match linear transform for each constraint.
| ObiNativeFloatList Obi.ObiShapeMatchingConstraintsBatch.materialParameters = new ObiNativeFloatList() |
5 floats per constraint: stiffness, plastic yield, creep, recovery and max deformation.
| ObiNativeIntList Obi.ObiShapeMatchingConstraintsBatch.numIndices = new ObiNativeIntList() |
amount of particles in each constraint.
| ObiNativeQuaternionList Obi.ObiShapeMatchingConstraintsBatch.orientations = new ObiNativeQuaternionList() |
current best-match orientation for each constraint.
| ObiNativeMatrix4x4List Obi.ObiShapeMatchingConstraintsBatch.plasticDeformations = new ObiNativeMatrix4x4List() |
current plastic deformation for each constraint.
| ObiNativeVector4List Obi.ObiShapeMatchingConstraintsBatch.restComs = new ObiNativeVector4List() |
rest center of mass for each constraint.