|
Hi everyone. I have a robot that uses a shield to block fireballs. But when i press the space button, it faces the same way everytime, so i end up with a sideways shield. I have attached the code as well. Any help is appreciated. Thanks, -Alias
(comments are locked)
|
|
Never Mind, I figured it out, i just needed to change "quaternion.identity" to "transform.rotation". Thanks anyway! In that case, mark your answer as solved so we don't get the question popping up weekly :)
Jul 04 '10 at 10:08 AM
Mike 3
(comments are locked)
|
|
You could use something like this:
distanceFromSpawn is a float which is how far away you want it, if you want it at the spawnpoint's positionm just remove the spawnPoint.forward * distanceFromSpawn Thanks for your reply. So i just paste it into the var section? I did that, but its giving me errors. Sorry, im new to scripting. Thanks
Jul 03 '10 at 09:10 PM
Aliasmk
(comments are locked)
|
