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

Angular Drive. More...

Public Member Functions

Functions
FAngularDriveConstraint & opAssign (FAngularDriveConstraint Other)

Public Attributes

AngularMotor
FVector AngularVelocityTarget
 Target angular velocity relative to the body reference frame in revolutions per second.
FRotator OrientationTarget
 Target orientation relative to the the body reference frame.
EAngularDriveMode AngularDriveMode
 Whether motors use SLERP (spherical lerp) or decompose into a Swing motor (cone constraints) and Twist motor (roll constraints). NOTE: SLERP will NOT work if any of the angular constraints are locked.
LinearMotor
FConstraintDrive SlerpDrive
 Controls the SLERP (spherical lerp) drive between current orientation/velocity and target orientation/velocity. NOTE: This is only available when all three angular limits are either free or limited. Locking any angular limit will turn off the drive implicitly.
FConstraintDrive SwingDrive
 Controls the cone constraint drive between current orientation/velocity and target orientation/velocity. This is available as long as there is at least one swing limit set to free or limited.
FConstraintDrive TwistDrive
 Controls the twist (roll) constraint drive between current orientation/velocity and target orientation/velocity. This is available as long as the twist limit is set to free or limited.

Detailed Description

Angular Drive.

Member Function Documentation

◆ opAssign()

Member Data Documentation

◆ AngularDriveMode

EAngularDriveMode AngularDriveMode

Whether motors use SLERP (spherical lerp) or decompose into a Swing motor (cone constraints) and Twist motor (roll constraints). NOTE: SLERP will NOT work if any of the angular constraints are locked.

◆ AngularVelocityTarget

FVector AngularVelocityTarget

Target angular velocity relative to the body reference frame in revolutions per second.

◆ OrientationTarget

FRotator OrientationTarget

Target orientation relative to the the body reference frame.

◆ SlerpDrive

FConstraintDrive SlerpDrive

Controls the SLERP (spherical lerp) drive between current orientation/velocity and target orientation/velocity. NOTE: This is only available when all three angular limits are either free or limited. Locking any angular limit will turn off the drive implicitly.

◆ SwingDrive

FConstraintDrive SwingDrive

Controls the cone constraint drive between current orientation/velocity and target orientation/velocity. This is available as long as there is at least one swing limit set to free or limited.

◆ TwistDrive

FConstraintDrive TwistDrive

Controls the twist (roll) constraint drive between current orientation/velocity and target orientation/velocity. This is available as long as the twist limit is set to free or limited.