perf
This commit is contained in:
@@ -392,13 +392,13 @@ namespace Dreamteck.Splines
|
||||
ResampleTransform();
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
/*void FixedUpdate()
|
||||
{
|
||||
if (updateMode == UpdateMode.FixedUpdate || updateMode == UpdateMode.AllUpdate)
|
||||
{
|
||||
RunUpdate();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
|
||||
@@ -514,7 +514,7 @@ namespace Dreamteck.Splines {
|
||||
#endif
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
/*private void FixedUpdate()
|
||||
{
|
||||
if (updateMethod == UpdateMethod.FixedUpdate)
|
||||
{
|
||||
@@ -522,7 +522,7 @@ namespace Dreamteck.Splines {
|
||||
RunUpdate();
|
||||
LateRun();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//Update logic for handling threads and rebuilding
|
||||
private void RunUpdate()
|
||||
|
||||
@@ -295,7 +295,12 @@ namespace Dreamteck.Splines
|
||||
|
||||
private Quaternion GetRotation(Quaternion inputRotation)
|
||||
{
|
||||
rotation = Quaternion.LookRotation(_splineResult.forward * (direction == Spline.Direction.Forward ? 1f : -1f), _splineResult.up);
|
||||
Vector3 fwd = _splineResult.forward * (direction == Spline.Direction.Forward ? 1f : -1f);
|
||||
if (fwd != Vector3.zero)
|
||||
{
|
||||
rotation = Quaternion.LookRotation(fwd, _splineResult.up);
|
||||
}
|
||||
|
||||
if (_2dMode)
|
||||
{
|
||||
if (applyRotation2D)
|
||||
|
||||
Reference in New Issue
Block a user