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

An example bow item. More...

Inheritance diagram for BNG.Bow:

Public Member Functions

void GrabArrow (Arrow arrow)
 
void ReleaseArrow ()
 

Public Attributes

float BowForce = 50f
 How much force to apply to the arrow, multiplied by how far back the bow is pulled More...
 
bool CanGrabArrowFromKnock = true
 If true, the player can grab a new arrow by holding the trigger down near the knock
More...
 
Transform ArrowRest
 
Transform ArrowKnock
 
bool CanGrabArrow = false
 
Grabber ClosestGrabber
 
Arrow GrabbedArrow
 
Grabber arrowGrabber
 
Vector3 LastValidPosition
 
float MaxStringDistance = 0.3f
 
float StringDistance = 0
 
Text PercentageUI
 

Properties

float DrawPercent = 0 [get]
 

Detailed Description

An example bow item.

Configurable force and damage.

Member Function Documentation

◆ GrabArrow()

void BNG.Bow.GrabArrow ( Arrow  arrow)

◆ ReleaseArrow()

void BNG.Bow.ReleaseArrow ( )

Member Data Documentation

◆ arrowGrabber

Grabber BNG.Bow.arrowGrabber

◆ ArrowKnock

Transform BNG.Bow.ArrowKnock

◆ ArrowRest

Transform BNG.Bow.ArrowRest

◆ BowForce

float BNG.Bow.BowForce = 50f

How much force to apply to the arrow, multiplied by how far back the bow is pulled

◆ CanGrabArrow

bool BNG.Bow.CanGrabArrow = false

◆ CanGrabArrowFromKnock

bool BNG.Bow.CanGrabArrowFromKnock = true

If true, the player can grab a new arrow by holding the trigger down near the knock

◆ ClosestGrabber

Grabber BNG.Bow.ClosestGrabber

◆ GrabbedArrow

Arrow BNG.Bow.GrabbedArrow

◆ LastValidPosition

Vector3 BNG.Bow.LastValidPosition

◆ MaxStringDistance

float BNG.Bow.MaxStringDistance = 0.3f

◆ PercentageUI

Text BNG.Bow.PercentageUI

◆ StringDistance

float BNG.Bow.StringDistance = 0

Property Documentation

◆ DrawPercent

float BNG.Bow.DrawPercent = 0
get

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