Skip to main content Link Menu Expand (external link) Document Search Copy Copied

GRPLGrabbableBase Public class

Description

Base class to make an object grabbable, this can be via a bounding box or via a list of trigger colliders used as bounding box.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph Rhinox.XR.Grapple.It
  Rhinox.XR.Grapple.It.GRPLGrabbableBase[[GRPLGrabbableBase]]
  Rhinox.XR.Grapple.It.GRPLInteractable[[GRPLInteractable]]
  class Rhinox.XR.Grapple.It.GRPLInteractable abstractStyle;
  end
Rhinox.XR.Grapple.It.GRPLInteractable --> Rhinox.XR.Grapple.It.GRPLGrabbableBase

Members

Properties

Public properties

Type Name Methods
bool IsGrabbed get, protected set

Methods

Protected methods

Returns Name
void Awake()
void DropInternal()
void GrabInternal(GameObject parent, RhinoxHand rhinoxHand)
void Initialize()
void OnDisable()
void OnDrawGizmos()
void OnEnable()

Public methods

Returns Name
bool CheckForInteraction(RhinoxJoint joint, RhinoxHand hand)
void TryDrop(RhinoxHand hand)
bool TryGetCurrentInteractJoint(ICollection<RhinoxJoint> joints, out RhinoxJoint outJoint, RhinoxHand hand)
void TryGrab(RhinoxHand hand)

Details

Summary

Base class to make an object grabbele, this can be via a bounding box or via a list of trigge rcolliders used as bounding box.

Remarks

Inheritance

Constructors

GRPLGrabbableBase

public GRPLGrabbableBase()

Methods

Awake

protected void Awake()

Initialize

protected override void Initialize()

OnEnable

protected override void OnEnable()

OnDisable

protected override void OnDisable()

CheckForInteraction

public override bool CheckForInteraction(RhinoxJoint joint, RhinoxHand hand)
Arguments
Type Name Description
RhinoxJoint joint  
RhinoxHand hand  

TryGetCurrentInteractJoint

public override bool TryGetCurrentInteractJoint(ICollection<RhinoxJoint> joints, out RhinoxJoint outJoint, RhinoxHand hand)
Arguments
Type Name Description
ICollection<RhinoxJoint> joints  
out RhinoxJoint outJoint  
RhinoxHand hand  

TryGrab

public void TryGrab(RhinoxHand hand)
Arguments
Type Name Description
RhinoxHand hand  

TryDrop

public void TryDrop(RhinoxHand hand)
Arguments
Type Name Description
RhinoxHand hand  

GrabInternal

protected virtual void GrabInternal(GameObject parent, RhinoxHand rhinoxHand)
Arguments
Type Name Description
GameObject parent  
RhinoxHand rhinoxHand  

DropInternal

protected virtual void DropInternal()

OnDrawGizmos

protected override void OnDrawGizmos()

Properties

IsGrabbed

public bool IsGrabbed { get; protected set; }

Generated with ModularDoc