Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack Overflow
#9
Quote:As I said, i use the EndlessRunnerPlayer, modified with my needs : 
You didn't say that before, did you?

And you're using MoveByConnection in your modified version:

Code:
// advance on lane. We use PingPong clamping to detect when we reach the end of a spline (in that case dir changes!)
Vector3 newPosOnSpline = Spline.MoveByConnection(ref Spline, ref TF, ref dir, Speed * Time.deltaTime, CurvyClamping.PingPong, 0, tags);

As you said, you're not using any tags, so you best should avoid using MoveByConnection and use MoveBy() instead (as in the original EndlessRunnerPlayer.cs). This should avoid the problematic code completely.

Jake
Reply


Messages In This Thread
Stack Overflow - by lelag - 12-18-2013, 10:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Stack overflow when editing prefab containing splines rhys_vdw 5 24 04-10-2023, 10:17 PM
Last Post: _Aka_

Forum Jump: