Head Mounted VR 2.0
Loading...
Searching...
No Matches
AVR_Button Class Reference

This is a physic base button class. Can be used in world or as a child actor component. More...

#include <VR_Button.h>

+ Inheritance diagram for AVR_Button:

Public Member Functions

 AVR_Button ()
 
virtual void Tick (float DeltaTime) override
 
FORCEINLINE class UStaticMeshComponent * GetMesh () const
 Get Pickup Mesh.
 
virtual void SetParent (AStaticMeshActor *ParentActor)
 Sets door Parent(Door Frame or smth like that)
 
virtual void SetParentComponent (UPrimitiveComponent *PrimitiveParentComponent)
 
bool IsPressed ()
 
void UpdateReturnForce (float Force, float Velocity, float Max_Force)
 
void DoOnPressed ()
 

Public Attributes

float FallInDistance
 
float ReturnForce
 
float VelocityStrength
 
float MaxForce
 
bool bDoOncePress
 
FVector SlideDirection
 

Protected Member Functions

virtual void BeginPlay () override
 
void CheckPosition ()
 

Protected Attributes

class USceneComponent * RootScene
 
class UStaticMeshComponent * Body_Mesh
 
class UPhysicsConstraintComponent * Body_PhysicsConstraint
 
class AStaticMeshActor * Parent_Actor
 
bool bPressed
 
FVector PrevLoc
 

Detailed Description

This is a physic base button class. Can be used in world or as a child actor component.

Constructor & Destructor Documentation

◆ AVR_Button()

AVR_Button::AVR_Button ( )

Member Function Documentation

◆ BeginPlay()

void AVR_Button::BeginPlay ( )
overrideprotectedvirtual

◆ CheckPosition()

void AVR_Button::CheckPosition ( )
protected

◆ DoOnPressed()

void AVR_Button::DoOnPressed ( )

◆ GetMesh()

FORCEINLINE class UStaticMeshComponent * AVR_Button::GetMesh ( ) const
inline

Get Pickup Mesh.

Note
Blueprint Callable , Category = "Object|Grab"
Returns
Returns StaticMeshComponent

◆ IsPressed()

bool AVR_Button::IsPressed ( )

◆ SetParent()

void AVR_Button::SetParent ( AStaticMeshActor * ParentActor)
virtual

Sets door Parent(Door Frame or smth like that)

Parameters
ParentActor

◆ SetParentComponent()

void AVR_Button::SetParentComponent ( UPrimitiveComponent * PrimitiveParentComponent)
virtual

◆ Tick()

void AVR_Button::Tick ( float DeltaTime)
overridevirtual

◆ UpdateReturnForce()

void AVR_Button::UpdateReturnForce ( float Force,
float Velocity,
float Max_Force )

Member Data Documentation

◆ bDoOncePress

bool AVR_Button::bDoOncePress

◆ Body_Mesh

class UStaticMeshComponent* AVR_Button::Body_Mesh
protected

◆ Body_PhysicsConstraint

class UPhysicsConstraintComponent* AVR_Button::Body_PhysicsConstraint
protected

◆ bPressed

bool AVR_Button::bPressed
protected

◆ FallInDistance

float AVR_Button::FallInDistance

◆ MaxForce

float AVR_Button::MaxForce

◆ Parent_Actor

class AStaticMeshActor* AVR_Button::Parent_Actor
protected

◆ PrevLoc

FVector AVR_Button::PrevLoc
protected

◆ ReturnForce

float AVR_Button::ReturnForce

◆ RootScene

class USceneComponent* AVR_Button::RootScene
protected

◆ SlideDirection

FVector AVR_Button::SlideDirection

◆ VelocityStrength

float AVR_Button::VelocityStrength

The documentation for this class was generated from the following files: