UE3:RB_ConstraintInstance (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
UT3 Object >> RB_ConstraintInstance
Package:
Engine
This class in other games:

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties

Property group 'Angular'

AngularDriveDamping

Type: float

Modifiers: const


Default value: 1.0

AngularDriveForceLimit

Type: float

Modifiers: const


AngularDriveSpring

Type: float

Modifiers: const


Default value: 50.0

AngularPositionTarget

Type: Object.Quat

Modifiers: const


Default value:

Member Value
W 1.0
X 0.0
Y 0.0
Z 0.0

AngularVelocityTarget

Type: Object.Vector

Modifiers: const

Revolutions per second

bAngularSlerpDrive

Type: bool

Modifiers: const


bSwingPositionDrive

Type: bool

Modifiers: const


bSwingVelocityDrive

Type: bool

Modifiers: const


bTwistPositionDrive

Type: bool

Modifiers: const


bTwistVelocityDrive

Type: bool

Modifiers: const


Property group 'Linear'

bLinearXPositionDrive

Type: bool

Modifiers: const


bLinearXVelocityDrive

Type: bool

Modifiers: const


bLinearYPositionDrive

Type: bool

Modifiers: const


bLinearYVelocityDrive

Type: bool

Modifiers: const


bLinearZPositionDrive

Type: bool

Modifiers: const


bLinearZVelocityDrive

Type: bool

Modifiers: const


LinearDriveDamping

Type: float

Modifiers: const


Default value: 1.0

LinearDriveForceLimit

Type: float

Modifiers: const


LinearDriveSpring

Type: float

Modifiers: const


Default value: 50.0

LinearPositionTarget

Type: Object.Vector

Modifiers: const


LinearVelocityTarget

Type: Object.Vector

Modifiers: const


Internal variables

bInHardware

Type: bool

Modifiers: native, const

Whether we are in the hardware or software scene.

bTerminated

Type: bool

Indicates that this constraint has been terminated

ConstraintData

Type: pointer{class NxJoint}

Modifiers: const, native

Internal use. Physics-engine representation of this constraint.

ConstraintIndex

Type: int

Modifiers: const

Indicates position of this constraint within the array in an PhysicsAssetInstance. Will correspond to RB_ConstraintSetup position in PhysicsAsset.

DummyKinActor

Type: pointer

Modifiers: const, native, private

If bMakeKinForBody1 is true, this is the kinematic body that is made for Body1. Due to the way the ConstraintInstance pooling works, this MUST BE LAST PROPERTY OF THE CLASS.

Owner

Type: Actor

Modifiers: const, transient

Actor that owns this constraint instance. Could be a ConstraintActor, or an actor using a PhysicsAsset containing this constraint. Due to the way the ConstraintInstance pooling works, this MUST BE FIRST PROPERTY OF THE CLASS.

OwnerComponent

Type: PrimitiveComponent

Modifiers: const, transient

PrimitiveComponent containing this constraint.

SceneIndex

Type: int

Modifiers: native, const

Physics scene index.

Native functions

GetConstraintLocation

final native function Object.Vector GetConstraintLocation ()

Get the position of this constraint in world space.

InitConstraint

final native function InitConstraint (PrimitiveComponent PrimComp1, PrimitiveComponent PrimComp2, RB_ConstraintSetup Setup, float Scale, Actor InOwner, PrimitiveComponent InPrimComp, bool bMakeKinForBody1)

Create physics engine constraint. If bMakeKinForBody1 is TRUE, then a non-colliding kinematic body is created for Body1 and used instead.

MoveKinActorTransform

final native function MoveKinActorTransform (out Object.Matrix NewTM)

If bMakeKinForBody1 was used, this function allows the kinematic body to be moved.

SetAngularDOFLimitScale

final native function SetAngularDOFLimitScale (float InSwing1LimitScale, float InSwing2LimitScale, float InTwistLimitScale, RB_ConstraintSetup InSetup)

Scale Angular Limit Constraints (as defined in RB_ConstraintSetup)

SetAngularDriveParams

final native function SetAngularDriveParams (float InSpring, float InDamping, float InForceLimit)


SetAngularPositionDrive

final native function SetAngularPositionDrive (bool bEnableSwingDrive, bool bEnableTwistDrive)


SetAngularPositionTarget

final native function SetAngularPositionTarget (Object.Quat InPosTarget)


SetAngularVelocityDrive

final native function SetAngularVelocityDrive (bool bEnableSwingDrive, bool bEnableTwistDrive)


SetAngularVelocityTarget

final native function SetAngularVelocityTarget (Object.Vector InVelTarget)


SetLinearDriveParams

final native function SetLinearDriveParams (float InSpring, float InDamping, float InForceLimit)


SetLinearLimitSize

final native function SetLinearLimitSize (float NewLimitSize)

Allows you to dynamically change the size of the linear limit 'sphere'.

SetLinearPositionDrive

final native function SetLinearPositionDrive (bool bEnableXDrive, bool bEnableYDrive, bool bEnableZDrive)


SetLinearPositionTarget

final native function SetLinearPositionTarget (Object.Vector InPosTarget)


SetLinearVelocityDrive

final native function SetLinearVelocityDrive (bool bEnableXDrive, bool bEnableYDrive, bool bEnableZDrive)


SetLinearVelocityTarget

final native function SetLinearVelocityTarget (Object.Vector InVelTarget)


TermConstraint

final native noexport function TermConstraint ()