top of page

VR Lever Rotatable

This is a rotatable physic lever class which player can rotate.

Class name:

Include:

Type:

Lines of code:

AVR_LeverRotatable

#include "VR/VR_Actors/VR_LeverRotatable.h"

Interactable Actor

217

​General Information

Description

VR Lever Rotatable 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

  • Rotation Limit - This is a float variable which is maximum lever rotation angle.

  • Rotation Axies - This is a EAxies enum(See VR Variables) variable which represents the lever rotation direction.

  • Inverse - This is a bool variable which can be used for reversing lever rotation direction.

  • On Limit - This is a float variable which represents the angle after reaching which lever will set it is on status(bIsTurnedOn) to true.

  • Off Limit - This is a float variable which represents the angle after reaching which lever will set it is on status(bIsTurnedOn) to false.


Blueprint API Reference

Public Member Functions

 

Is Turned On
  Returnes true if reached maximum of RotationLimit.

Output
  bool bIsTurnedOn
 

Get Current Angle
  Returnes current rotation angle of lever.

Output
  float CurrentAngle
 

Protected Attributes

 
float 	RotationLimit
 
 

EAxies 	RotationAxies
 
 

bool 	bInverse
 
 

float 	OnLimit
 
 

float 	OffLimit
 

bottom of page