Resource
Physics
(NOTE) Defines various configuration values used by physics to solve constraints. This resource defines a tiered set of properties that can be overridden global or per constraint type.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
Constructor | PositionCorrectionType | dataresource | |
PositionIterationCount | |||
SolverIterationCount | |||
VelocityRestitutionThreshold |
Properties
PositionCorrectionType : PhysicsSolverPositionCorrection
What method should be used to fix errors in joints. Baumgarte fixes errors by adding extra velocity but results in a more spongy behavior. Post Stabilization fixes errors by directly modifying position but can behave worse in unsolvable configurations.
var PositionCorrectionType : PhysicsSolverPositionCorrection
PositionIterationCount : integer
The number of iterations used for position correction (if position correction is used).
var PositionIterationCount : Integer
SolverIterationCount : integer
The number of iterations used in the constraint solver. Affects how stiff joints will be.
var SolverIterationCount : Integer
VelocityRestitutionThreshold : real
To prevent numerical issues, restitution is only applied if the relative velocity between the two objects is above this value.
var VelocityRestitutionThreshold : Real
Methods
PhysicsSolverConfig : Void
constructor
Name Type Description function PhysicsSolverConfig()