This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PhysicsFollow : MonoBehaviour | |
| { | |
| public Transform follow; | |
| public Rigidbody rb; | |
| void FixedUpdate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected virtual void OnTransformUpdated(SteamVR_Behaviour_Pose updatedPose, SteamVR_Input_Sources updatedSource) | |
| { | |
| GameObject attachedObject = currentAttachedObject; | |
| if (attachedObject != null) | |
| { | |
| if (currentAttachedObjectInfo.Value.interactable != null) | |
| { | |
| currentAttachedObjectInfo.Value.interactable.CustomMoveStuffFunc(); // not real function name | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class BuggyCamFollow : MonoBehaviour | |
| { | |
| public BuggyInfo buggyInfo; | |
| [Header("ReferenceTransforms")] | |
| public Transform buggyTransform; | |
| public Transform cameraBoom; |