Head Mounted VR 2.5
Loading...
Searching...
No Matches
AVR_StaticMesh Class Reference

This is a static object which player can pick up using one of grab methods (enum EGrabMethod) More...

#include <VR_StaticMesh.h>

+ Inheritance diagram for AVR_StaticMesh:

Public Member Functions

 AVR_StaticMesh ()
 
void UpdateModel (class UStaticMesh *NewMesh)
 Updates the Pickup mesh model More...
 
void UpdateMaterial (class UMaterialInterface *NewMaterial)
 Updates the Pickup mesh material More...
 
void UpdateMass (float NewMass)
 Updates the mass on the object More...
 
FORCEINLINE class UStaticMeshComponent * GetPickupMesh () const
 Get Pickup Mesh More...
 
virtual void Tick (float DeltaTime) override
 Called every frame. More...
 
- Public Member Functions inherited from AVR_Actor
 AVR_Actor ()
 
virtual void Tick (float DeltaTime) override
 
virtual bool IsColliding_Implementation ()
 
void OnHitCheckColliding (UPrimitiveComponent *HitComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, FVector normalImpulse, const FHitResult &Hit)
 
- Public Member Functions inherited from IVR_InteractionInterface
bool IsGrabbed ()
 
bool CanPullGrab ()
 
void Grab (class UVR_HandComponent *MotionController, bool &HandleStatus, bool bFroceAttachHandle)
 Used for interaction with objects such as door More...
 
bool IsColliding ()
 
void Drop (class UVR_HandComponent *MotionController)
 Stop object interaction More...
 
void Shoot ()
 
bool IsHeldBy (class UVR_HandComponent *MotionController)
 Indetify if object is held by MotionController More...
 
bool CanNonVRInteract ()
 
bool ForceCheckForGrabComponents ()
 
void NonVRInteraction (AVR_Player *Player)
 
bool IsNonVRInteractTillStop ()
 
void Stop_NonVRInteraction (AVR_Player *Player)
 Stop object interaction More...
 

Public Attributes

class UVR_GrabComponentGrabComponent
 

Protected Member Functions

virtual void BeginPlay () override
 Called when the game starts or when spawned. More...
 
virtual void BeginPlay () override
 

Protected Attributes

class USceneComponent * RootScene
 Default scene root More...
 
class UStaticMeshComponent * PickupMesh
 Mesh for picking up. More...
 
- Protected Attributes inherited from AVR_Actor
bool bIsColliding = false
 

Detailed Description

This is a static object which player can pick up using one of grab methods (enum EGrabMethod)

Note
use Physics Constraint Method in most cases

Constructor & Destructor Documentation

◆ AVR_StaticMesh()

AVR_StaticMesh::AVR_StaticMesh ( )

Member Function Documentation

◆ BeginPlay()

void AVR_StaticMesh::BeginPlay ( )
overrideprotectedvirtual

Called when the game starts or when spawned.

Reimplemented from AVR_Actor.

Reimplemented in AVR_Equipment, AVR_AmmoClip, AVR_AmmoRound, and AVR_StabWeapon.

◆ GetPickupMesh()

FORCEINLINE class UStaticMeshComponent * AVR_StaticMesh::GetPickupMesh ( ) const
inline

Get Pickup Mesh

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

◆ Tick()

void AVR_StaticMesh::Tick ( float  DeltaTime)
overridevirtual

Called every frame.

Reimplemented from AVR_Actor.

Reimplemented in AVR_Equipment, AVR_AmmoClip, and AVR_StabWeapon.

◆ UpdateMass()

void AVR_StaticMesh::UpdateMass ( float  NewMass)

Updates the mass on the object

Parameters
NewMass
Note
Blueprint Callable , Category = "Object|Grab"

◆ UpdateMaterial()

void AVR_StaticMesh::UpdateMaterial ( class UMaterialInterface *  NewMaterial)

Updates the Pickup mesh material

Parameters
NewMaterial
See also
UpdateModel(class UStaticMesh* NewMesh)
Note
Blueprint Callable , Category = "Object|Grab"
Warning
DO NOT FORGET TO CHANGE THE MODEL

◆ UpdateModel()

void AVR_StaticMesh::UpdateModel ( class UStaticMesh *  NewMesh)

Updates the Pickup mesh model

Parameters
NewMesh
See also
UpdateMaterial(class UMaterialInterface* NewMaterial)
Note
Blueprint Callable , Category = "Object|Grab"
Warning
DO NOT FORGET TO CHANGE THE MATERIAL

Member Data Documentation

◆ GrabComponent

class UVR_GrabComponent* AVR_StaticMesh::GrabComponent

◆ PickupMesh

class UStaticMeshComponent* AVR_StaticMesh::PickupMesh
protected

Mesh for picking up.

◆ RootScene

class USceneComponent* AVR_StaticMesh::RootScene
protected

Default scene root


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