Weird behavior when applying max speed on different actors
I’m seeing a weird behavior regarding the apply max speed setting so I was wondering if anyone here could help me understand what is happening. To summarize the problem: actors with same max speed applied are moving with different speeds, even though the display text behavior (which I’m using to debug) claims that they are travelling at the same speed.
To understand what I’m saying, consider this set up example:
1 – Create 2 actors and place them at the top of your display (same y coordinate). Apply max speed of 230 to both
2 – On the first actor, add a accelerate behavior (direction: 270 degrees, acceleration of 1500)
3 - On the second actor, add the move behavior (direction: 270 degrees, speed 230)
When you hit preview, they are going to “race” to the bottom of the display and they should move at the same speed because you applied max speed of 230. However, that is not what happens. The actor with accelerate behavior moves with a speed slightly greater than the actor with the move behavior. The images attached show this. They were taken a couple of seconds apart (the red actor is the one with the accelerate behavior). You can see that he is about to win the race because he was moving faster. I used the display text to display the linear velocity y of them and it claims that they are both at speed of 230 but they are not.
What I find super weird is that there is clearly a max speed applied to the actor with the acceleration behavior, because if you untick this setting, his speed will be extremely high (because of the high acceleration of 1500). However, this max speed is not the one I had previously set.
My goal is to make them both move at the same speed, using accelerate behavior in one actor and move behavior on the other actor. Even though I could fix this by applying a lower max speed on the actor with accelerate behavior, I still can’t find a logic to this. And there is more, if I increase the acceleration, the speed difference will be greater, and I can’t find a linear correlation between these two attributes (max speed and acceleration). If I duplicate the accelerate behavior, they will work as additive and also provide a greater speed. It looks like the apply max speed setting on the actor with accelerate behavior is working kind of sloppy/half-assed.
Any insights? Am I missing something here?