VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
AVR.Phys.GrabLocation Class Reference

Represents an (attempted) grab at a given location of an object. More...

Public Member Functions

 GrabLocation (AVR_Grabbable grabbable, Vector3 location, float distance, Collider collider)
 
 GrabLocation (AVR_Grabbable grabbable, Vector3 location, float distance, AVR_GrabNode node)
 

Public Attributes

AVR_Grabbable grabbable
 
Vector3 location => isNode ? node.transform.position : grabbable.transform.TransformPoint(_llocation)
 
Vector3 localLocation => _llocation
 
float distance
 
bool isNode
 
Collider collider
 
AVR_GrabNode node
 

Private Attributes

Vector3 _llocation
 

Detailed Description

Represents an (attempted) grab at a given location of an object.

Definition at line 11 of file AVR_GrabbableFinder.cs.