diff --git a/Runtime/HumanoidControl/Scripts/Targets/HandTarget.cs b/Runtime/HumanoidControl/Scripts/Targets/HandTarget.cs index 0728576..d236ede 100644 --- a/Runtime/HumanoidControl/Scripts/Targets/HandTarget.cs +++ b/Runtime/HumanoidControl/Scripts/Targets/HandTarget.cs @@ -911,6 +911,17 @@ namespace Passer.Humanoid { public bool twoHandedGrab = false; public Vector3 targetToSecondaryHandle; + public bool TouchedStaticObject() { + if (touchedObject == null) + return false; + + Rigidbody rb = touchedObject.GetComponent(); + if (rb == null || rb.isKinematic) + return true; + + return false; + } + public bool GrabbedStaticObject() { if (grabbedObject != null && grabbedRigidbody && grabbedKinematicRigidbody) return true;