| Home Page | Recent Changes | Preferences

KHinge

UT2003 :: Actor >> KActor >> KConstraint >> KHinge (Package: Engine)

The native, placeable Hinge joint class.

Properties

KarmaConstraint

float KDesiredAngle
65535 = 360 degrees
float KAltDesiredAngle
65535 = 360 degrees
float KDesiredAngVel
65535 = 1 rotation per second
EHingeType KHingeType
float KMaxTorque
float KProportionalGap
65535 = 360 degrees
float KStiffness
float KDamping

Hidden

bool KUseAltDesired
Will use KAltDesiredAngle.
float KCurrentAngle

Enums

EHingeType

HT_Normal
Will spin freely around the given axis, KDesiredAngle.
HT_Springy
The given spin axis is able to move, but will return to normal.
HT_Motor
Will constantly spin around the given axis.
HT_Controlled
Somewhere between HT_Springy and HT_Motor, where a constant spin is applied to an axis that is able to move.

States

Default (auto)

In this state nothing will happen if this hinge is triggered or untriggered.

Ignores Trigger, UnTrigger.

ToggleMotor

In this state, Trigger will cause the hinge type to change to HT_Motor. Another trigger will toggle it to HT_Controlled, and it will try and maintain its current angle.

Ignores UnTrigger.

Functions

Trigger( Actor Other, Pawn EventInstigator )
If KHingeType == HT_Motor, sets KDesiredAngle = KCurrentAngle, KUseAltDesired = False and KHingeType = HT_Controlled. Otherwise sets KHingeType = HT_Motor. Calls KUpdateConstraintParams() and KConstraintActor1.KWake().
Begin
Sets KHingeType = HT_Controlled and KUseAltDesired = False. Calls KUpdateConstraintParams().

ControlMotor

In this state, Trigger will turn motor on. Untrigger will turn toggle it to HT_Controlled, and it will try and maintain its current angle.

Functions

Trigger( Actor Other, Pawn EventInstigator )
if KHingeType != HT_Motor, sets KHingeType = HT_Motor and calls KUpdateConstraintParams() and KConstraintActor1.KWake().
UnTrigger( Actor Other, Pawn EventInstigator )
if KHingeType == HT_Motor, sets KDesiredAngle = KCurrentAngle, KUseAltDesired = False and KHingeType = HT_Controlled, then calls KUpdateConstraintParams() and KConstraintActor1.KWake().
Begin
Sets KHingeType = HT_Controlled and KUseAltDesired = False. Calls KUpdateConstraintParams().

ToggleDesired

In this state a trigger will toggle the hinge between using KDesiredAngle and KAltDesiredAngle. It will use whatever the current KHingeType is to achieve this, so this is only useful with HT_Controlled and HT_Springy.

Ignores Untrigger.

Functions

Trigger( Actor Other, Pawn EventInstigator )
Toggles KUseAltDesired. Calls KUpdateConstraintParams() and KConstraintActor1.KWake().

ControlDesired

In this state, trigger will cause the hinge to use KAltDesiredAngle, untrigger will caus it to use KAltDesiredAngle.

Functions

Trigger( Actor Other, Pawn EventInstigator )
Sets KUseAltDesired = True and calls KUpdateConstraintParams() and KConstraintActor1.KWake().
UnTrigger( Actor Other, Pawn EventInstigator )
Sets KUseAltDesired = False and calls KUpdateConstraintParams() and KConstraintActor1.KWake().

Related Topics


Category Class (UT2003)

Category Class (UT2004)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In