rigidbody and coliders

Hi all,

i ran into a strange problem and the content on the tutorials are contradictory.

I have 2 GO
One : attached rigidbody to it and moving it by changing the transform.
Two : A box made of colliders.

Xpected : If One collides with Two, One should stop moving.

But in doc it says that the physics stops when u move a rigidbody by virtue of its transform.

Also it suggests to make the Rigidbody Kinematic and uncheck the IsKinematic property of the rigidbody.
it didnt help either.

Plz suggest some solution

To get correct physical behaviour (collisions, etc) you should add forces to the rigidbody, using rigidbody.AddForce, rigidbody.AddTorque, etc. Moving the transform of a rigidbody object generally doesn’t have the result you would expect.

Actually i want the GO One to move by transform only and work under physics also… so that it can detect the collision with GO Two

try altering the velocity instead of the transform position… this works better than trying to move the transform.