top of page

VR Lever Base

This is a the base lever class which can interact with players hands. Look at lever rotatable or slide class. Use only if you want to develop new lever type.

Class name:

Include:

Type:

Lines of code:

AVR_LeverBase

#include "VR/VR_Actors/VR_LeverBase.h"

Interactable Actor

403

​General Information

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


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.


Blueprint API Reference

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
 

bottom of page