This commit is contained in:
SoulliesOfficial
2025-07-21 05:42:20 -04:00
parent e483cfe502
commit bae0bfbc20
533 changed files with 172709 additions and 125965 deletions

View File

@@ -392,13 +392,13 @@ namespace Dreamteck.Splines
ResampleTransform();
}
void FixedUpdate()
/*void FixedUpdate()
{
if (updateMode == UpdateMode.FixedUpdate || updateMode == UpdateMode.AllUpdate)
{
RunUpdate();
}
}
}*/
void LateUpdate()
{

View File

@@ -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()

View File

@@ -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)