My gameObject slows and accelarates alone in a translation supposed to be constant
// Hello Uniy Community
//The context of the issue: I have a gameObject following a path composed by different checkpoints. It follows a target (checkpoint entity) and once it collides with it moves to the next checkpoint. (I checked "is Trigger" on the checkpoints and the gameObject box colliders and I'm using onTriggerEnter() to detect collisions). I'm using Rigidbody property but no gravity.
//The Issue: The gameObject follows the path point after point. But the speed varies itself between two points. It start fast, and slow before reaching the next checkpoint. Here is the function :
void translateVersTarget(GameObject Go)// Translate the Mobile following the new Vector calculated
{
Go.transform.Translate((new Vector3(Vecx,0,Vecz)*Time.deltaTime*speed*0.0008f),Space.World);
}
// I don't know why the speed varies as the speed is a constant define in void Start(). I removed speed, same issue. Vecx and Vecz are calculated elsewhere and I don't see how they could affect the speed.