![]() |
VR Interaction Framework v2.0
|
Constrain a magazine when it enters this area. Attaches the magazine in place if close enough. More...
Public Member Functions | |
void | CheckGrabClipInput () |
void | EjectMagazine () |
void | OnGrabClipArea (Grabber grabbedBy) |
virtual void | AttachGrabbableMagazine (Grabbable mag, Collider magCollider) |
Public Attributes | |
string | AcceptableMagazineName = "Clip" |
Clip transform name must contain this to be considered valid. | |
Grabbable | AttachedWeapon |
The weapon this magazine is attached to (optional) | |
float | ClipSnapDistance = 0.075f |
float | ClipUnsnapDistance = 0.15f |
float | EjectForce = 1f |
How much force to apply to the inserted magazine if it is forcefully ejected. | |
Grabbable | HeldMagazine = null |
float | MagazineDistance = 0f |
AudioClip | ClipAttachSound |
AudioClip | ClipDetachSound |
Constrain a magazine when it enters this area. Attaches the magazine in place if close enough.
|
virtual |
void BNG.MagazineSlide.CheckGrabClipInput | ( | ) |
void BNG.MagazineSlide.EjectMagazine | ( | ) |
void BNG.MagazineSlide.OnGrabClipArea | ( | Grabber | grabbedBy | ) |
string BNG.MagazineSlide.AcceptableMagazineName = "Clip" |
Clip transform name must contain this to be considered valid.
Grabbable BNG.MagazineSlide.AttachedWeapon |
The weapon this magazine is attached to (optional)
RaycastWeapon
AudioClip BNG.MagazineSlide.ClipAttachSound |
AudioClip BNG.MagazineSlide.ClipDetachSound |
float BNG.MagazineSlide.ClipSnapDistance = 0.075f |
float BNG.MagazineSlide.ClipUnsnapDistance = 0.15f |
float BNG.MagazineSlide.EjectForce = 1f |
How much force to apply to the inserted magazine if it is forcefully ejected.
Grabbable BNG.MagazineSlide.HeldMagazine = null |
float BNG.MagazineSlide.MagazineDistance = 0f |