|
virtual Grabbable | GetClosestGrabbable (Dictionary< Collider, Grabbable > grabbables, bool remoteOnly=false, bool raycastCheck=false) |
|
virtual bool | CheckObjectBetweenGrabbable (Vector3 startingPosition, Grabbable theGrabbable) |
| Check if there is an object / collision between the starting transform (our Grabber) and the grabbable object.
|
|
Dictionary< Collider, Grabbable > | GetValidGrabbables (Dictionary< Collider, Grabbable > grabs) |
|
virtual Dictionary< Collider, Grabbable > | SanitizeGrabbables (Dictionary< Collider, Grabbable > grabs) |
|
virtual void | AddNearbyGrabbable (Collider col, Grabbable grabObject) |
|
virtual void | RemoveNearbyGrabbable (Collider col, Grabbable grabObject) |
|
virtual void | RemoveNearbyGrabbable (Grabbable grabObject) |
|
virtual void | AddValidRemoteGrabbable (Collider col, Grabbable grabObject) |
|
virtual void | RemoveValidRemoteGrabbable (Collider col, Grabbable grabObject) |
|
|
Dictionary< Collider, Grabbable > | NearbyGrabbables |
| All grabbables in trigger that are considered valid.
|
|
Dictionary< Collider, Grabbable > | ValidGrabbables |
| All nearby Grabbables that are considered valid. I.e. Not being held, within range, etc.
|
|
Grabbable | ClosestGrabbable |
| The closest valid grabbable. If grab button is pressed this is the object that will be grabbed.
|
|
Dictionary< Collider, Grabbable > | ValidRemoteGrabbables |
| All grabbables in trigger that are considered valid.
|
|
Grabbable | ClosestRemoteGrabbable |
| Closest Valid Remote Grabbable may be highlighted.
|
|
bool | FireGrabbableEvents = true |
| Should we call events on grabbables.
|
|
bool | RaycastRemoteGrabbables = false |
| If true, Grabbables in the trigger will only be considered valid if no objects are in the way between it and this transform.
|
|
bool | RemoteGrabbablesMustBeVisible = false |
| If true, Remote Grabbables must not have any collisions between the Main Camera and the Remote Grabbable we are trying to reach. This can help prevent grabbing items through walls or around corners.
|
|
LayerMask | RemoteCollisionLayers = 1 |
| If RaycastRemoteGrabbables is true, use these layers to detect collisions between the grabber and the potential grabbable object. By Default only looking for collisions on the "Default" layer.
|
|
Keep track of all grabbables within this trigger.