Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dumbest issue ever, but it took me waaaay too long to track down
#1
This isn't so much a bug report as it is a "thing that could be more obvious" report.

I installed Curvy, created a spline, and hooked it up to a custom spline walker class (I had written a spline traversal class a while back for a different spline system; I adapted that class to traverse Curvy splines). Hit play, and... no traversal. Just stuck at TF=0 forever. I was using MoveBy with a (valid) distance parameter and it was returning the exact same TF I passed in, every time. Google told me nobody else had ever had this problem, which was mystifying because of how straightforward the use case seemed to be.

I dug around for a couple hours, including stepping my way through a bunch of Curvy's own code, before finally realizing the problem: I was inadvertently passing MoveBy a direction value of zero. Changing it to 1 fixed the issue immediately.

Curious, I tried a few other "wrong" values for direction. Directions greater than 1 didn't seem to have any effect, until I tried a direction of 200, at which point the traversal behaved erratically. I'd have expected higher direction values to either get clamped to 1, or scale the traversal amount; the actual result was just weirdly inconsistent.

Anyway.

Like I said, maybe not a bug per se but it seems like it'd be super useful if MoveBy (and other functions that take a direction) threw an error if the direction value isn't exactly -1 or 1, since other values really make no sense here and seem to do unpredictable things. It's an easy fix once you know what's failing, but right now it's not necessarily obvious what's failing in the first place.
 

 
Reply
#2
Sorry you had hard times with this. In 2.0 you can pass in any value you like and it's handled properly (>=0 is forward, <0 is backwards).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Lightmap/Shadow issue TurboHans 4 271 11-24-2020, 08:33 AM
Last Post: TurboHans
  Making long roadmesh runtime migeg 19 2,565 08-17-2020, 11:04 PM
Last Post: migeg
  UV issue with variable mix shape modifier MarioBag 4 2,110 12-07-2019, 01:43 PM
Last Post: _Aka_
  Camera wobbles on too long spline (100km+) Vectorvision 10 5,332 08-01-2019, 12:35 PM
Last Post: _Aka_

Forum Jump: