Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.PhysicsAssetInstance

Extends
Object
Modifiers
hidecategories ( Object ) native ( Physics )

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

Core.Object
|   
+-- Engine.PhysicsAssetInstance

Constants Summary
Inherited Contants from Core.Object
DegToRad, INDEX_NONE, MaxInt, Pi, RadToDeg

Variables Summary
floatAngularDampingScale
floatAngularForceLimitScale
floatAngularSpringScale
array<RB_BodyInstance>Bodies
Map_MirrorCollisionDisableTable
array<RB_ConstraintInstance>Constraints
floatLinearDampingScale
floatLinearForceLimitScale
floatLinearSpringScale
ActorOwner
intRootBodyIndex
Inherited Variables from Core.Object
Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject

Enumerations Summary
Inherited Enumerations from Core.Object
EAxis, EInputEvent, EInterpCurveMode, EInterpMethodType, ETickingGroup

Structures Summary
Inherited Structures from Core.Object
Box, BoxSphereBounds, Color, Cylinder, double, DynamicMap_Mirror, Guid, IndirectArray_Mirror, InterpCurveFloat, InterpCurvePointFloat, InterpCurvePointQuat, InterpCurvePointTwoVectors, InterpCurvePointVector, InterpCurvePointVector2D, InterpCurveQuat, InterpCurveTwoVectors, InterpCurveVector, InterpCurveVector2D, IntPoint, LinearColor, Map_Mirror, Matrix, MultiMap_Mirror, Plane, pointer, Quat, qword, RawDistribution, RenderCommandFence, Rotator, TextureMipBulkData_Mirror, ThreadSafeCounter, TPOV, TwoVectors, UntypedBulkData_Mirror, Vector, Vector2D, Vector4

Functions Summary
functionRB_BodyInstance FindBodyInstance (name BodyName, PhysicsAsset InAsset)
functionRB_ConstraintInstance FindConstraintInstance (name ConName, PhysicsAsset InAsset)
functionfloat GetTotalMassBelowBone (name InBoneName, PhysicsAsset InAsset, SkeletalMesh InSkelMesh)
function SetAllBodiesFixed (bool bNewFixed)
function SetAllMotorsAngularDriveParams (float InSpring, float InDamping, float InForceLimit)
function SetAllMotorsAngularDriveStrength (float InAngularSpringStrength, float InAngularDampingStrength, float InAngularForceLimitStrength, SkeletalMeshComponent SkelMeshComp)
function SetAllMotorsAngularPositionDrive (bool bEnableSwingDrive, bool bEnableTwistDrive)
function SetAngularDriveScale (float InAngularSpringScale, float InAngularDampingScale, float InAngularForceLimitScale)
function SetFullAnimWeightBonesFixed (bool bNewFixed, SkeletalMeshComponent SkelMesh)
function SetLinearDriveScale (float InLinearSpringScale, float InLinearDampingScale, float InLinearForceLimitScale)
function SetNamedBodiesBlockRigidBody (bool bNewBlockRigidBody, Array<Name> BoneNames, SkeletalMeshComponent SkelMesh)
function SetNamedBodiesFixed (bool bNewFixed, Array<Name> BoneNames, SkeletalMeshComponent SkelMesh, optional bool bSetOtherBodiesToComplement)
function SetNamedMotorsAngularPositionDrive (bool bEnableSwingDrive, bool bEnableTwistDrive, Array<Name> BoneNames, SkeletalMeshComponent SkelMeshComp, optional bool bSetOtherBodiesToComplement)
function SetNamedRBBoneSprings (bool bEnable, Array<Name> BoneNames, float InBoneLinearSpring, float InBoneAngularSpring, SkeletalMeshComponent SkelMeshComp)
Inherited Functions from Core.Object
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, Asc, Asin, Atan, BeginState, ByteToFloat, Caps, Chr, Clamp, ClampLength, ClampRotAxis, ClassIsChildOf, ClearConfig, ClockwiseFrom, ColorToLinearColor, ContinuedState, Cos, Cross, Disable, Dot, DumpStateStack, DynamicLoadObject, Enable, EndState, Exp, FClamp, FCubicInterp, FindDeltaAngle, FindObject, FInterpEaseIn, FInterpEaseInOut, FInterpEaseOut, FInterpTo, FloatToByte, FMax, FMin, FPctByRange, FRand, GetAngularDegreesFromRadians, GetAngularDistance, GetAngularFromDotDist, GetAxes, GetDotDistance, GetEnum, GetFuncName, GetHeadingAngle, GetNetFuncName, GetPackageName, GetPerObjectConfigSections, GetRangePctByValue, GetRangeValueByPct, GetSpecialValue, GetStateName, GetUnAxes, GotoState, InStr, IsA, IsChildState, IsInState, IsNetScript, IsPendingKill, IsUTracing, IsZero, JoinArray, Left, Len, Lerp, Localize, Locs, Loge, LogInternal, MakeColor, MakeLinearColor, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, NormalizeRotAxis, OrthoRotation, ParseStringIntoArray, PathName, PausedState, PointDistToLine, PointDistToPlane, PointInBox, PoppedState, PopState, ProjectOnTo, PushedState, PushState, QuatDot, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RandRange, RDiff, Repl, Right, RInterpTo, RLerp, RotRand, Round, RSize, RSmerp, SaveConfig, SClampRotAxis, ScriptTrace, SetSpecialValue, SetUTracing, Sin, Split, Sqrt, Square, StaticClearConfig, StaticSaveConfig, Tan, TimeStamp, ToHex, TransformVectorByRotation, UnwindHeading, vect2d, VInterpTo, VLerp, VRand, VSize, VSize2D, VSizeSq, VSizeSq2D, VSmerp, WarnInternal, ^, ^^, |, ||, ~, ~=


Variables Detail

AngularDampingScale Source code

var const float AngularDampingScale;
Scaling factor to AngularDriveDamping in all RB_ConstraintInstances within this instance.

AngularForceLimitScale Source code

var const float AngularForceLimitScale;
Scaling factor to AngularDriveForceLimit in all RB_ConstraintInstances within this instance.

AngularSpringScale Source code

var const float AngularSpringScale;
Scaling factor to AngularDriveSpring in all RB_ConstraintInstances within this instance.

Bodies Source code

var const instanced array<RB_BodyInstance> Bodies;
Array of RB_BodyInstance objects, storing per-instance state about about each body.

CollisionDisableTable Source code

var const native Map_Mirror CollisionDisableTable;
Table indicating which pairs of bodies have collision disabled between them. Used internally.

Constraints Source code

var const instanced array<RB_ConstraintInstance> Constraints;
Array of RB_ConstraintInstance structs, storing per-instance state about each constraint.

LinearDampingScale Source code

var const float LinearDampingScale;
Scaling factor to LinearDriveDamping in all RB_ConstraintInstances within this instance.

LinearForceLimitScale Source code

var const float LinearForceLimitScale;
Scaling factor to LinearDriveForceLimit in all RB_ConstraintInstances within this instance.

LinearSpringScale Source code

var const float LinearSpringScale;
Scaling factor to LinearDriveSpring in all RB_ConstraintInstances within this instance.

Owner Source code

var const transient Actor Owner;
Actor that owns this PhysicsAsset instance. Filled in by InitInstance, so we don't need to save it.

RootBodyIndex Source code

var const transient int RootBodyIndex;
Index of the 'Root Body', or top body in the asset heirarchy. Used by PHYS_RigidBody to get new location for Actor. Filled in by InitInstance, so we don't need to save it.


Functions Detail

FindBodyInstance Source code

final native function RB_BodyInstance FindBodyInstance ( name BodyName, PhysicsAsset InAsset )
Find instance of the body that matches the name supplied.

FindConstraintInstance Source code

final native function RB_ConstraintInstance FindConstraintInstance ( name ConName, PhysicsAsset InAsset )
Find instance of the constraint that matches the name supplied.

GetTotalMassBelowBone Source code

final native function float GetTotalMassBelowBone ( name InBoneName, PhysicsAsset InAsset, SkeletalMesh InSkelMesh )
Utility which returns total mass of all bones below the supplied one in the hierarchy (including this one).

SetAllBodiesFixed Source code

final native function SetAllBodiesFixed ( bool bNewFixed )
Fix or unfix all bodies

SetAllMotorsAngularDriveParams Source code

final native function SetAllMotorsAngularDriveParams ( float InSpring, float InDamping, float InForceLimit )
Set Angular Drive motors params for all constraint instance

SetAllMotorsAngularDriveStrength Source code

final native function SetAllMotorsAngularDriveStrength ( float InAngularSpringStrength, float InAngularDampingStrength, float InAngularForceLimitStrength, SkeletalMeshComponent SkelMeshComp )
Set angular motors strength

SetAllMotorsAngularPositionDrive Source code

final native function SetAllMotorsAngularPositionDrive ( bool bEnableSwingDrive, bool bEnableTwistDrive )
Enable or Disable AngularPositionDrive

SetAngularDriveScale Source code

final native function SetAngularDriveScale ( float InAngularSpringScale, float InAngularDampingScale, float InAngularForceLimitScale )

SetFullAnimWeightBonesFixed Source code

final native function SetFullAnimWeightBonesFixed ( bool bNewFixed, SkeletalMeshComponent SkelMesh )
Allows you to fix/unfix bodies where bAlwaysFullAnimWeight is set to TRUE in the BodySetup.

SetLinearDriveScale Source code

final native function SetLinearDriveScale ( float InLinearSpringScale, float InLinearDampingScale, float InLinearForceLimitScale )

SetNamedBodiesBlockRigidBody Source code

final native function SetNamedBodiesBlockRigidBody ( bool bNewBlockRigidBody, Array<Name> BoneNames, SkeletalMeshComponent SkelMesh )
Use to toggle collision on particular bodies in the asset.

SetNamedBodiesFixed Source code

final native function SetNamedBodiesFixed ( bool bNewFixed, Array<Name> BoneNames, SkeletalMeshComponent SkelMesh, optional bool bSetOtherBodiesToComplement )
Fix or unfix a list of bodies, by name

SetNamedMotorsAngularPositionDrive Source code

final native function SetNamedMotorsAngularPositionDrive ( bool bEnableSwingDrive, bool bEnableTwistDrive, Array<Name> BoneNames, SkeletalMeshComponent SkelMeshComp, optional bool bSetOtherBodiesToComplement )
Enable or Disable AngularPositionDrive based on a list of bone names

SetNamedRBBoneSprings Source code

final native function SetNamedRBBoneSprings ( bool bEnable, Array<Name> BoneNames, float InBoneLinearSpring, float InBoneAngularSpring, SkeletalMeshComponent SkelMeshComp )
Use to toggle and set RigidBody angular and linear bone springs (see RB_BodyInstance).


Defaultproperties

defaultproperties
{
   LinearSpringScale=1.000000
   LinearDampingScale=1.000000
   LinearForceLimitScale=1.000000
   AngularSpringScale=1.000000
   AngularDampingScale=1.000000
   AngularForceLimitScale=1.000000
   Name="Default__PhysicsAssetInstance"
   ObjectArchetype=Object'Core.Default__Object'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:41.355 - Created with UnCodeX