13 lines
262 B
C#
13 lines
262 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class RopeJoint : MonoBehaviour
|
||
|
{
|
||
|
public Transform anchor;
|
||
|
public Rigidbody2D body;
|
||
|
public bool locked = false;
|
||
|
|
||
|
public Vector3 position => anchor.position;
|
||
|
}
|