Struct ContactJacAngAndVelToReachCp
A contact jacobian angle and velocity to reach the contact plane.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public struct ContactJacAngAndVelToReachCp
Fields
ApplyImpulse
A flag used to indicate if an impulse should be applied to the contact point. This flag is set to true by default and is only false if: the substepCount > 1, the coefficient of restitution is greater than 0 and CalculateRestitution returns false. Needed for brief contacts when substepping so that impulse isn't always applied during Solve.
Declaration
public bool ApplyImpulse
Field Value
Type | Description |
---|---|
bool |
ContactDistance
The distance to the contact point. This point is initially identified by the narrowphase and is initialized during the Jacobian Build stage. During the solve and integrate stage, this value is updated each substep.
Declaration
public float ContactDistance
Field Value
Type | Description |
---|---|
float |
Jac
The jacobian.
Declaration
public ContactJacobianAngular Jac
Field Value
Type | Description |
---|---|
ContactJacobianAngular |
VelToReachCp
Velocity needed to reach the contact plane in one frame, both if approaching (negative) and depenetrating (positive)
Declaration
public float VelToReachCp
Field Value
Type | Description |
---|---|
float |