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

Angular roll constraint. More...

Public Member Functions

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

Public Attributes

Angular
EAngularConstraintMotion TwistMotion
 Indicates whether the Twist limit is used.
float32 TwistLimitDegrees
 Symmetric angle of roll along the X-axis.
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.
Public Attributes inherited from FConstraintBaseParams
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.

Detailed Description

Angular roll constraint.

Member Function Documentation

◆ opAssign()

FTwistConstraint & opAssign ( FTwistConstraint Other)

◆ 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.

◆ TwistLimitDegrees

float32 TwistLimitDegrees

Symmetric angle of roll along the X-axis.

◆ TwistMotion

Indicates whether the Twist limit is used.