I want to make conveyor belts. I have managed to make it react when i hit the conveyor and it does move, but it accelerates when it goes onto another conveyor instead of keeping the same speed. Here’s the code:
void OnCollisionEnter (Collision collisionInfo)
{
if (collisionInfo.collider.tag == “Conveyor”)
{
Debug.Log(“We Hit Conveyor”);
rb.AddForce(0, 0, forwardForce * Time.deltaTime);
}
}
I dont want it to add the force, but rather keep the force the same even when it goes onto another conveyor.
What asset do you exactly work with in this case, your own, or from the store ?
Please, display the complete conveyor script so the community can have an input with the ideas, on your problem :).