Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > UPhysicalAnimationComponent
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/PhysicalAnimationComponent.h |
Include | #include "PhysicsEngine/PhysicalAnimationComponent.h" |
Syntax
static PhysicalAnimationProfile = { FConstraintProfileProperties RetProfile; RetProfile.LinearLimit.XMotion = LCM_Free; RetProfile.LinearLimit.YMotion = LCM_Free; RetProfile.LinearLimit.ZMotion = LCM_Free; RetProfile.ConeLimit.Swing1Motion = ACM_Free; RetProfile.ConeLimit.Swing2Motion = ACM_Free; RetProfile.TwistLimit.TwistMotion = ACM_Free; RetProfile.LinearDrive.XDrive.bEnablePositionDrive = true; RetProfile.LinearDrive.XDrive.bEnableVelocityDrive = true; RetProfile.LinearDrive.YDrive.bEnablePositionDrive = true; RetProfile.LinearDrive.YDrive.bEnableVelocityDrive = true; RetProfile.LinearDrive.ZDrive.bEnablePositionDrive = true; RetProfile.LinearDrive.ZDrive.bEnableVelocityDrive = true; RetProfile.AngularDrive.SlerpDrive.bEnablePositionDrive = true; RetProfile.AngularDrive.SlerpDrive.bEnableVelocityDrive = true; RetProfile.AngularDrive.AngularDriveMode = EAngularDriveMode::SLERP; return RetProfile; }();