A container and solver for collision constraints. 更多...
#include <PBDCollisionConstraints.h>
类 Chaos::FPBDCollisionConstraints 继承关系图:类 | |
| struct | FConstraintAppendScope |
| Helper object for efficiently appending constraints into the constraint container in a scope. 更多... | |
Public 成员函数 | |
| void | AddConstraint (const FRigidBodyPointContactConstraint &InConstraint) |
| Add the constraint to the container. 更多... | |
| void | ApplyCollisionModifier (const FCollisionModifierCallback &CollisionModifier) |
| Apply a modifier to the constraints and specify which constraints should be disabled. 更多... | |
| FConstraintAppendScope | BeginAppendScope () |
| Begin an append operation, recieving a helper object for bulk operations on the constraint container | |
| void | DisableConstraints (const TSet< TGeometryParticleHandle< FReal, 3 > * > &ParticleHandle) |
| Disable the constraints associated with the ParticleHandle. | |
| void | DisableHandles () |
| Put the container in "no handles" mode for use with simple solver. 更多... | |
| bool | GetHandlesEnabled () const |
| Whether this container provides constraint handles (simple solvers do not need them) | |
| void | RemoveConstraint (FPBDCollisionConstraintHandle *ConstraintHandle) |
| Remove the constraint, update the handle, and any maps. | |
| void | RemoveConstraints (const TSet< TGeometryParticleHandle< FReal, 3 > * > &ParticleHandle) |
| Remove the constraints associated with the ParticleHandle. | |
| void | Reset () |
| Reset the constraint frame. | |
| void | SetApplyType (ECollisionApplyType InApplyType) |
| Set the solver method to use in the Apply step | |
| void | SetPostApplyCallback (const FRigidBodyContactConstraintsPostApplyCallback &Callback) |
| Callbacks | |
| void | UpdateConstraints (FReal Dt) |
| Update all constraint values 更多... | |
| void | UpdateConstraints (FReal Dt, const TSet< TGeometryParticleHandle< FReal, 3 > * > &AddedParticles) |
| Update all constraint values within the set | |
| void | UpdateManifolds (FReal Dt) |
| Update all contact manifolds | |
| void | UpdatePositionBasedState (const FReal Dt) |
| Generate all contact constraints. | |
A container and solver for collision constraints.
| void Chaos::FPBDCollisionConstraints::AddConstraint | ( | const FRigidBodyPointContactConstraint & | InConstraint | ) |
Add the constraint to the container.
| void Chaos::FPBDCollisionConstraints::ApplyCollisionModifier | ( | const FCollisionModifierCallback & | CollisionModifier | ) |
Apply a modifier to the constraints and specify which constraints should be disabled.
You would probably call this in the PostComputeCallback. Prefer this to calling RemoveConstraints in a loop, so you don't have to worry about constraint iterator/indices changing.
| void Chaos::FPBDCollisionConstraints::DisableHandles | ( | ) |
Put the container in "no handles" mode for use with simple solver.
Must be called when empty of constraints (ideally right after creation).
| void Chaos::FPBDCollisionConstraints::UpdateConstraints | ( | FReal | Dt | ) |
Update all constraint values
Update all constraint values