Initial Commit

This commit is contained in:
2025-07-04 20:33:06 +03:00
commit 8f09347ae0
9219 changed files with 2447903 additions and 0 deletions
@@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SPPquad : MonoBehaviour
{
OVRPassthroughLayer passthroughLayer;
public MeshFilter projectionObject;
OVRInput.Controller controllerHand;
void Start()
{
passthroughLayer = GetComponent<OVRPassthroughLayer>();
passthroughLayer.AddSurfaceGeometry(projectionObject.gameObject, false);
if (GetComponent<GrabObject>())
{
GetComponent<GrabObject>().GrabbedObjectDelegate += Grab;
GetComponent<GrabObject>().ReleasedObjectDelegate += Release;
}
}
public void Grab(OVRInput.Controller grabHand)
{
passthroughLayer.RemoveSurfaceGeometry(projectionObject.gameObject);
controllerHand = grabHand;
}
public void Release()
{
controllerHand = OVRInput.Controller.None;
passthroughLayer.AddSurfaceGeometry(projectionObject.gameObject, false);
}
}