Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Movement speed
#1
Curious about something

This is a pretty typical object translation 

Code:
transform.position += transform.forward * MoveSpeed * Time.deltaTime;

If MoveSpeed = 5.7, would that be the same speed as if I put 5.7 into the Movement Speed along a spline?

I'm making an object shape the player that's aligned to a spline, but this chaser won't be on a spline.. so the numbers have to relate.  Right now, 5.7 makes the chaser MUCH faster than my player.
Reply
#2
(05-30-2018, 09:16 PM)mythstified Wrote: If MoveSpeed = 5.7, would that be the same speed as if I put 5.7 into the Movement Speed along a spline?

Yes, it should. Make sure that Move Mode is not set to Relative, in which case 5.7 would not mean 5.7 meters per second, but 5.7 times the spline length per second.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(05-30-2018, 11:24 PM)_Aka_ Wrote:
(05-30-2018, 09:16 PM)mythstified Wrote: If MoveSpeed = 5.7, would that be the same speed as if I put 5.7 into the Movement Speed along a spline?

Yes, it should. Make sure that Move Mode is not set to Relative, in which case 5.7 would not mean 5.7 meters per second, but 5.7 times the spline length per second.

I have it set like this.. my Bear is running me down with super sonic speed lol  I'll keep experimenting


Attached Files Image(s)
   
Reply
#4
I don't see anything wrong from the screenshot, except the speed of 0 which I guess is set to a non zero value in your tests.
Can you send me the scene so I can see what's going on?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Problem with backward loop movement Szagi 4 164 11-23-2018, 02:58 PM
Last Post: _Aka_
  Pitch and Speed sirak 1 97 11-23-2018, 02:48 PM
Last Post: _Aka_
  Wrong movement between splines Sergei543071 3 386 07-30-2018, 12:17 AM
Last Post: _Aka_
  Spline Controller Animate - Don't understand the Speed and TimeScale properties GenericJoe 12 2,154 07-20-2018, 09:02 PM
Last Post: GenericJoe

Forum Jump: