Reimplemented from AVR.Phys.AVR_BasicGrabProvider. Definition at line 78 of file AVR_OffsetGrabProvider.cs. 83 if (grabbedObject == null && handVisual != null && grabbableFinder.getGrabLocation(out GrabLocation grabLocation) && !grabLocation.isNode)
87 // This is a hacky/bad way of calculating the "entry-distance" (maximum distance inside the grabzone-collider in direction grabzone_p)
93 float max_pregrab_adapt_factor = 0.35f; // maximum AdaptWeigth used for pregrab. (weight when grabPoint=p)
94 float max_pregrab_grace_dist = 0.03f; // Distance at which we consider "grabPoint=p" for purposes stated above
95 float w = Mathf.Max(0, max_pregrab_adapt_factor - (Mathf.Max(0, currentdist - max_pregrab_grace_dist) / entrydist));
AVR_GrabbableFinder grabbableFinder Area from which the player may grab an object. Required for the grabprovider to work. Definition: AVR_BasicGrabProvider.cs:50 abstract bool getGrabLocation(out GrabLocation location) GrabLocation grabLocation Definition: AVR_BasicGrabProvider.cs:62 AVR_Grabbable grabbedObject Object that is currently being grabbed. Null if no object is being grabbed Definition: AVR_BasicGrabProvider.cs:55 |