- Home /
Question by
shelin · Mar 22, 2011 at 01:33 PM ·
objectsmoveautomatically
Objects automatically move toward another object
I want to make one cube can automatically go to attack the other cube. How can I do?
Comment
Answer by Statement · Mar 22, 2011 at 05:17 PM
Write a script for it. Just have it move toward its target with Transform.Translate What you mean by attack I am not sure but you could periodically check a sphere overlap and subtract the health of the other cube? You'd have to write a health script as well.