修改水
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user