Общая информация
Description
VR Lever Base class is a lever with which player can interact. The class uses Physics Constraint Component to achieve physics interactions.(See VR Lever Slide and VR Lever Rotatable. The settings are fundamental to both). This actor is using VR Grab Component(See VR Grab Component).
Components
Body Mesh - This is a lever body Static Mesh Component.
Body Physics Constraint - This is a Physics Constraint Component which connects Body Mesh with the d Parent Actor variable.
Settings
Parent Actor - This is a actor variable which indicates the parent actor to connect.
Return Force - This is a float variable which represents a return force to base position.
Velocity Strength - This is a velocity float variable for Physics Constraint Component.
Max Force - This is a max force float variable for Physics Constraint Component.
Справочник API Blueprint
Public Member Functions
Set Parent
Sets lever Parent.
Input
AStaticMeshActor* ParentActor
Get Animn Type
returns EAnimationType
Output
EAnimationType AnimnType
Get Grab Method
returns EGrabMethod
Output
EGrabMethod GrabMethod
Get Mesh
returns Body_Mesh
Output
UStaticMeshComponent* Body_Mesh
Get PickUp Animation
returns AnimationCategory
Output
EPickUpAnimations AnimationCategory
Get Animation
returns Grab Animation
Output
UAnimSequence* Animation
Update Return Force
Input
float Force
float Velocity
float Max_Force
Protected Attributes
class USceneComponent * RootScene
class UStaticMeshComponent * Body_Mesh
class UPhysicsConstraintComponent * Body_PhysicsConstraint
FName SocketName
Socket name for unique animation.
class AStaticMeshActor * Parent_Actor
EGrabMethod GrabMethod
TArray< FName > SocketArray
Socket name for unique animation.
TArray< UAnimSequence * > AnimationsArray
Animation for each socket from SocketArray.
EPickUpAnimations AnimationCategory
Animation Catagory.
UAnimSequence * Animation
Unique animation.
float fSocketInRadius
Socket radius interaction radius.
float ReturnForce
float VelocityStrength
float MaxForce
EAnimationType AnimnType