11-12-2004, 04:16 PM
Hello All!
I'm trying to make 3D 1. view shooter!
when I want to go forword: z.center = z.center + 1
straight left: x.center = x.center + 1
etc...
My problem is this:
When I want to turn right or left how can I do that? For example if I have only one cube in my 3D world, when I want to turn right, I need my cube to go x.center = x.center - 1 and I need it to rotate a little! I have no idea what values do I need to use to turn right or left. Everything else works perfect!!! Are there any formulas for turning right/left? I know how to rotate my cube with theta and phi, but how can I turn!!!??? I hope you understood me! Thank you!
I'm trying to make 3D 1. view shooter!
when I want to go forword: z.center = z.center + 1
straight left: x.center = x.center + 1
etc...
My problem is this:
When I want to turn right or left how can I do that? For example if I have only one cube in my 3D world, when I want to turn right, I need my cube to go x.center = x.center - 1 and I need it to rotate a little! I have no idea what values do I need to use to turn right or left. Everything else works perfect!!! Are there any formulas for turning right/left? I know how to rotate my cube with theta and phi, but how can I turn!!!??? I hope you understood me! Thank you!