Sign in to follow this  
phil67rpg

rotating primitive

Recommended Posts

Can you post some code? (not all of it!). It's possible you're doing the translate at the wrong place. i.e. are you rotating and then translating, or translating and then rotating?

Share this post


Link to post
Share on other sites
I think you need to re-ask your question. Rotating a ship for any 3rd person space shooter, you should leave your model at the origin, do your rotations, and then translate it into space.

Share this post


Link to post
Share on other sites
here is the code I am working on.
[font="Consolas"][size="2"][color="#0000ff"][font="Consolas"][size="2"][color="#0000ff"][font="Consolas"][size="2"][color="#0000ff"]void[/color][/size][/font][/color][/size][/font][/color][/size][/font][font="Consolas"][size="2"][font="Consolas"][size="2"][color="#000000"] AlienLeft()[/color][/size][/font][/size][/font]
[font="Consolas"][size="2"][font="Consolas"][size="2"]{[/size][/font][/size][/font]
[font="Consolas"][size="2"][font="Consolas"][size="2"]glRotatef(k,0.0f,0.0f,1.0f);[/size][/font][/size][/font]
[font="Consolas"][size="2"][font="Consolas"][size="2"]k+=0.01f;[/size][/font][/size][/font]
[font="Consolas"][size="2"][font="Consolas"][size="2"]}[/size][/font][/size][/font]

Share this post


Link to post
Share on other sites
So what is your problem with it? What is it you're trying to do, and how is is not working? What is the problem with the answers given already? You really need to provide some information if you want some help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this