- Home /
Conveyor belt physics
Hello,
I've setup a Trigger Collider to add force or use MovePosition to any rigidbody that enters it. But no matter what i try do, some rigidbodies will stop moving and not move forward anymore even though they are inside the trigger!
void OnTriggerStay( Collider other )
{
if( other.rigidbody != null && other.GetComponent<Droppable>() != null && speed != 0 )
other.rigidbody.MovePosition( other.transform.position + Vector3.forward * Time.deltaTime * speed);
}
Any idea's why some rigidbodies just fall silent and stop moving? Tried everything from velocity to addForce.
Answer by Superflat · Sep 08, 2013 at 02:36 PM
solved by adding a rigidbody to the trigger.
Your answer
Follow this Question
Related Questions
Enemy can't trigger a hit when the player doesn't move 0 Answers
Multiple grab locations on 1 game object?,MULTIPLE GRAB LOCATIONS on 1 game object? 0 Answers
Moving Trigger not detecting stationary MeshCollider 0 Answers
Triggers not being called 2 Answers
Collision detection for low relative velocity, high world velocity rigidbodies 2 Answers