G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FConstraintBaseParams Struct Reference

Public Member Functions

Functions
void SetbSoftConstraint (bool Value)
 Whether we want to use a soft constraint (spring).
FConstraintBaseParams & opAssign (FConstraintBaseParams Other)

Public Attributes

Constraint
float32 Damping
 Damping of the soft constraint. Only used when Soft Constraint is on.
float32 Restitution
 Controls the amount of bounce when the constraint is violated. A restitution value of 1 will bounce back with the same velocity the limit was hit. A value of 0 will stop dead.
float32 ContactDistance
 Determines how close to the limit we have to get before turning the joint on. Larger value will be more expensive, but will do a better job not violating constraints. A smaller value will be more efficient, but easier to violate.
float32 Stiffness
 Stiffness of the soft constraint. Only used when Soft Constraint is on.

Member Function Documentation

◆ opAssign()

◆ SetbSoftConstraint()

void SetbSoftConstraint ( bool Value)

Whether we want to use a soft constraint (spring).

Member Data Documentation

◆ ContactDistance

float32 ContactDistance

Determines how close to the limit we have to get before turning the joint on. Larger value will be more expensive, but will do a better job not violating constraints. A smaller value will be more efficient, but easier to violate.

◆ Damping

float32 Damping

Damping of the soft constraint. Only used when Soft Constraint is on.

◆ Restitution

float32 Restitution

Controls the amount of bounce when the constraint is violated. A restitution value of 1 will bounce back with the same velocity the limit was hit. A value of 0 will stop dead.

◆ Stiffness

float32 Stiffness

Stiffness of the soft constraint. Only used when Soft Constraint is on.