修改水

This commit is contained in:
2026-01-01 22:00:33 +08:00
parent 040a222bd6
commit 9ceffccd39
1800 changed files with 103929 additions and 139495 deletions

View File

@@ -8,14 +8,13 @@ namespace Obi
[Range(0,1)]
public float m;
public void LateUpdate()
public void LateUpdate()
{
if (smoother != null && smoother.actor.isLoaded)
if (smoother != null)
{
var trfm = smoother.actor.solver.transform;
ObiPathFrame section = smoother.GetSectionAt(m);
transform.position = trfm.TransformPoint(section.position);
transform.rotation = trfm.rotation * Quaternion.LookRotation(section.tangent, section.binormal);
transform.position = smoother.transform.TransformPoint(section.position);
transform.rotation = smoother.transform.rotation * (Quaternion.LookRotation(section.tangent, section.binormal));
}
}