自写输入系统

This commit is contained in:
2025-05-27 22:29:10 +08:00
parent 8dac46c92a
commit e4c6ee8559
7 changed files with 55630 additions and 55369 deletions

View File

@@ -13,10 +13,21 @@ namespace NBF
_rigidbody = GetComponent<Rigidbody>();
}
private void LateUpdate()
{
// BindPosition();
}
private void FixedUpdate()
{
if (!target) return;
_rigidbody.MovePosition(target.position);
BindPosition();
}
private void BindPosition()
{
// _rigidbody.MovePosition(target.position);
_rigidbody.position = target.position;
}
}
}