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

Constraint setup struct, holds data required to build a physics constraint. More...

Public Member Functions

Functions
FAnimPhysConstraintSetup & opAssign (FAnimPhysConstraintSetup Other)

Public Attributes

Angular
AnimPhysTwistAxis TwistAxis
 Axis to consider for twist when constraining angular motion (forward axis).
AnimPhysAngularConstraintType AngularConstraintType
 Method to use when constraining angular motion.
float32 ConeAngle
 Angle to use when constraining using a cone.
FVector AngularLimitsMin
FVector AngularLimitsMax
FVector AngularTarget
 The axis to align the angular spring constraint to in the animation pose. This typically points down the bone - so values of (1.0, 0.0, 0.0) are common, but you can pick other values to align the spring to a different direction. Note: This is affected by the Angular Spring Constant.
AnimPhysTwistAxis AngularTargetAxis
 The axis in the simulation pose to align to the Angular Target. This is typically the axis pointing along the bone. Note: This is affected by the Angular Spring Constant.
Linear
FVector LinearAxesMin
 Minimum linear movement per-axis (Set zero here and in the max limit to lock).
FVector LinearAxesMax
 Maximum linear movement per-axis (Set zero here and in the min limit to lock).
AnimPhysLinearConstraintType LinearZLimitType
 Whether to limit the linear Z axis.
AnimPhysLinearConstraintType LinearYLimitType
 Whether to limit the linear Y axis.
AnimPhysLinearConstraintType LinearXLimitType
 Whether to limit the linear X axis.

Detailed Description

Constraint setup struct, holds data required to build a physics constraint.

Member Function Documentation

◆ opAssign()

Member Data Documentation

◆ AngularConstraintType

AnimPhysAngularConstraintType AngularConstraintType

Method to use when constraining angular motion.

◆ AngularLimitsMax

FVector AngularLimitsMax

◆ AngularLimitsMin

FVector AngularLimitsMin

◆ AngularTarget

FVector AngularTarget

The axis to align the angular spring constraint to in the animation pose. This typically points down the bone - so values of (1.0, 0.0, 0.0) are common, but you can pick other values to align the spring to a different direction. Note: This is affected by the Angular Spring Constant.

◆ AngularTargetAxis

AnimPhysTwistAxis AngularTargetAxis

The axis in the simulation pose to align to the Angular Target. This is typically the axis pointing along the bone. Note: This is affected by the Angular Spring Constant.

◆ ConeAngle

float32 ConeAngle

Angle to use when constraining using a cone.

◆ LinearAxesMax

FVector LinearAxesMax

Maximum linear movement per-axis (Set zero here and in the min limit to lock).

◆ LinearAxesMin

FVector LinearAxesMin

Minimum linear movement per-axis (Set zero here and in the max limit to lock).

◆ LinearXLimitType

AnimPhysLinearConstraintType LinearXLimitType

Whether to limit the linear X axis.

◆ LinearYLimitType

AnimPhysLinearConstraintType LinearYLimitType

Whether to limit the linear Y axis.

◆ LinearZLimitType

AnimPhysLinearConstraintType LinearZLimitType

Whether to limit the linear Z axis.

◆ TwistAxis

AnimPhysTwistAxis TwistAxis

Axis to consider for twist when constraining angular motion (forward axis).