top of page

VR Lever Slide

This is a physic lever class which can slide. Player can interact with it.

Class name:

Include:

Type:

Lines of code:

AVR_LeverSlide

#include "VR/VR_Actors/VR_LeverSlide.h"

Interactable Actor

148

​General Information

Description

VR Lever Slide class is a lever which player can rotate. The class uses Physics Constraint Component to achieve physics interactions.(See VR Lever Base for a base set up).



Settings

  • Slide Limit - This is a float variable which is the maximum distance lever can move.

  • Slide Direction - This is a vector variable which represents the direction in which lever will be able to move(To inverse the direction use -1 value).


Blueprint API Reference

Protected Member Functions

 
Is Turned On
  Returns true if reached maximum of slide Limit.

Output
  bool bIsTurnedOn
 

Protected Attributes

 
float 	SlideLimit
 
 

FVector 	SlideDirection
 

bottom of page