Perform a grab on with parameters given in a GrabLocation struct Reimplemented from AVR.Phys.AVR_BasicGrabProvider. Definition at line 42 of file AVR_AdvancedOffsetGrabProvider.cs. 48 if(handVisual!=null) handVisual.glove_transform.position += grabLocation.location - grabPoint.position;
50 virtualGrabPoint.position = grabbedObject.transform.position; //The target position is equal to the object position == dont move the object directly on-grab
54 // pos_offset is equal to the local position of virtualGrabPoint == difference to base.getTargetPosition()
GrabbableObjectType objectType Type that describes the objects behaviour when grabbed. Definition: AVR_Grabbable.cs:16 Vector3 pos_offset Definition: AVR_AdvancedOffsetGrabProvider.cs:18 AVR_Grabbable grabbedObject Object that is currently being grabbed. Null if no object is being grabbed Definition: AVR_BasicGrabProvider.cs:55 Quaternion rot_offset Definition: AVR_AdvancedOffsetGrabProvider.cs:19 float distance_travelled_since_grab Definition: AVR_AdvancedOffsetGrabProvider.cs:15 |