hello all,
This is my first time posting, so please go easy on me.
I am new to unity, coming from blender, and i am trying to duplicate the simple 2d shooter game from 3dbuzz.com. i am having the problem they talked about here:
http://www.3dbuzz.com/vbforum/sv_showvideo.php?v=3615
at about 10:30 in the video, it shows the problem with rotating the enemy object in local space vs. world space. my game enemy is doing the same thing. the problem is, this tutorial was written in c#, and i am using javascript, and i don’t know how to make the translation from c# to js. here is a copy of my enemy script:
var enemySpeed: int;
var rotateSpeed: int;
function Update () {
amtToMove = enemySpeed * Time.deltaTime;
transform.Translate(Vector3.down * amtToMove);
transform.Rotate(Vector3.rightrotateSpeedTime.deltaTime, Space.World);
if(transform.position.y <= -5){
transform.position.y = 7;
transform.position.x = Random.Range(-6,6);
}
does anyone have any idea what i can do to fix this? do i need to use quaternion, or euler angles? any help is greatly appreciated.
thanks,
mike (data)