playMaker

Author Topic: Set Velocity and rigidbody speed value  (Read 23914 times)

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Set Velocity and rigidbody speed value
« on: May 25, 2025, 01:48:58 PM »
Hi!
I use rigidbody gameobjects for the npcs and use "set velocity" to make them move.

This worked perfectly in my previous game, but in my new game, for some reason the rigidbody speed value is not correct.

In my previous game when I "set velocity" to move the rigidbody, the rigidbody info panel displays the correct speed value, fore example I set the velocity to 4 then the info panel only displays "speed 4" when the rigidbody is actually moving with that much speed, and when it get's stuck or something then the speed goes down.
I my new game when I "set velocity" to 6 to move the rigidbody, the info panel displays "speed 6" even when the rigidbody is stuck and not moving at all.

Why is the speed info is different, when I use the same method in both games?
I need this speed info to be correct for AI behavior.

I use the same Unity and Playmaker version in both games. The actions, fsms rigidbody properties are the same also.

My old game where it functions perfectly:

My new game where it displays the wrong speed value