VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.Phys.AVR_BasicGrabProvider.Start ( )
inlineprotectedvirtual

Reimplemented from AVR.Core.AVR_Component.

Reimplemented in AVR.Phys.AVR_OffsetGrabProvider.

Definition at line 83 of file AVR_BasicGrabProvider.cs.

83  {
84  if(grabPoint==null) grabPoint = transform;
85 
86  if (grabbableFinder == null) grabbableFinder = GetComponentInChildren<AVR_GrabbableFinder>();
87  if (grabbableFinder == null) {
88  AVR_DevConsole.error("Grabprovider " + gameObject.name + " has no grabbableFinder assigned! Destroying " + gameObject.name);
89  Destroy(gameObject);
90  }
91  }
AVR_GrabbableFinder grabbableFinder
Area from which the player may grab an object. Required for the grabprovider to work.
Transform grabPoint
Transform of the location an object is grabbed towards (Typically the palm of your hand)...