VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
virtual void AVR.Phys.AVR_BasicGrabProvider.makeGrab ( )
inlinevirtual

Performs a grab on whichever object the GrabbableFinder returns. Is called when the respective "grabEvent" is true.

Definition at line 120 of file AVR_BasicGrabProvider.cs.

120  {
121  // Get the collider that is closest to the grabPoint
122  if(grabbableFinder.getGrabLocation(out GrabLocation location)) makeGrab(location);
123  else grabLocation = null;
124  }
AVR_GrabbableFinder grabbableFinder
Area from which the player may grab an object. Required for the grabprovider to work.
abstract bool getGrabLocation(out GrabLocation location)
virtual void makeGrab()
Performs a grab on whichever object the GrabbableFinder returns. Is called when the respective "grabE...