Hello All,
i am new in unity3d.and just started as a unity3d Game Developer.
i want to make an object that follow the path of the player while player comes in its trigger.
after that if any other object again comes in trigger with the player then second object follow the path of the first object.just like snake game.
i am trying this with the help of the smooth follow script,but it does not work.
can any one help me.
Thanks…!!!
Nik
do you have attach the smooth follow script with main camera which object it is follow ? If you are attaching this script to main camera then what type of problem you are facing ?
Do you have your trigger code assigning the transform of the object that just entered the trigger? You would need a way to exclude the already attached parts of the snake so that you don’t have two parts follow the head etc.
The concept sounds cool, but too many smooth follow scripts in a scene may be costly. You could fake it so that the snake is already built using something like joints. Then have the parts of the snake unrendered till they hit one of the triggered parts in the scene. This way when triggered it gets destroyed and tells the snake script to render another part. You could even have it lerp into pos.
PS Welcome to the forum