VR Interaction Framework  1.0
A vr framework for the Oculus Quest
BNG.MagazineSlide Class Reference

Constrain a magazine when it enters this area. More...

Inheritance diagram for BNG.MagazineSlide:

Public Member Functions

void OnGrabClipArea (Grabber grabbedBy)
 

Public Attributes

Grabbable AttachedWeapon
 The weapon this magazine is attached to (optional) More...
 
float ClipSnapDistance = 0.075f
 
float ClipUnsnapDistance = 0.15f
 
Grabbable HeldMagazine = null
 
float MagazineDistance = 0f
 
AudioClip ClipAttachSound
 
AudioClip ClipDetachSound
 

Detailed Description

Constrain a magazine when it enters this area.

Attaches the magazine in place if close enough.

Member Function Documentation

◆ OnGrabClipArea()

void BNG.MagazineSlide.OnGrabClipArea ( Grabber  grabbedBy)

Member Data Documentation

◆ AttachedWeapon

Grabbable BNG.MagazineSlide.AttachedWeapon

The weapon this magazine is attached to (optional)

◆ ClipAttachSound

AudioClip BNG.MagazineSlide.ClipAttachSound

◆ ClipDetachSound

AudioClip BNG.MagazineSlide.ClipDetachSound

◆ ClipSnapDistance

float BNG.MagazineSlide.ClipSnapDistance = 0.075f

◆ ClipUnsnapDistance

float BNG.MagazineSlide.ClipUnsnapDistance = 0.15f

◆ HeldMagazine

Grabbable BNG.MagazineSlide.HeldMagazine = null

◆ MagazineDistance

float BNG.MagazineSlide.MagazineDistance = 0f

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