ReelsMoving
This commit is contained in:
1 parent
eb535311d7
commit
3a94e032c9
565 files changed
+68433
-13960
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using GogoGaga.OptimizedRopesAndCables;
|
||||
using UnityEngine;
|
||||
using UnityEngine.XR.Interaction.Toolkit.Interactables;
|
||||
|
||||
@@ -5,13 +6,15 @@ public class MaterialRopeDetachAction : MonoBehaviour
|
||||
{
|
||||
Vector3 InitialCords;
|
||||
Quaternion InitialRotation;
|
||||
//Rope Rope;
|
||||
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
InitialCords = transform.position;
|
||||
InitialCords = transform.localPosition;
|
||||
InitialRotation = gameObject.transform.rotation;
|
||||
//Rope = gameObject.GetComponentInChildren<Rope>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
@@ -22,8 +25,9 @@ public class MaterialRopeDetachAction : MonoBehaviour
|
||||
|
||||
public void reset()
|
||||
{
|
||||
transform.position = InitialCords;
|
||||
transform.localPosition = InitialCords;
|
||||
transform.rotation = InitialRotation;
|
||||
//Rope.RecalculateRope();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user