I have done with drawing path using line renderer as per drag, and after that cube have to follow that path.
It’s done, but if i take two cubes, both are moving as per own path, but both are not colliding with each other, i am not able to detect collision, to follow path i have used vectrosity .
I have also tried using raycasting but not working.
Please help me, i just want to draw path, and as per that object has to move with collision detection.
Check if the collider’s have the field “isTrigger” enabled in the inspector. This should be disabled.
Triggers can be used for firing events (e.g. when a player enters a room) and will therefore prevent a physical collision.
yes its done by adding rigidbody in both object.