feature: 基本完成绑定

This commit is contained in:
2023-03-30 21:18:20 +08:00
parent f812a1b831
commit 2a0047a04b
2 changed files with 24 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using UnityEngine;
using Utils;
namespace Models
{
@@ -12,6 +13,7 @@ namespace Models
private readonly GameObject _bond;
public Quaternion Rotation => _bond.transform.rotation;
public Vector3 Vector => End.transform.position - Start.transform.position;
public Bond(GameObject start,GameObject end,float scale)
{