Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Sin and Cos for dummies!

Author
Message
Torq
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location:
Posted: 11th Dec 2005 07:50
Heres a nifty program I used a while back. I was having so much trouble comming to terms and really understanding how to use sin and cos for things like orbiting cameras, orbits,cameras that follow with a radius, and how to make something travel in a wave. Ths is Simple code that has planets orbiting a small sun.
It helped me a long hope it can help someone else. Can be used for enemies in 2d games also just look at the rem line at the bottom for different patterns.



If something similar was posted sorry I didnt search the forum Im on a very slow connection. I got this code from some where here and altered it cant remember where it was though.

http://badtempergames.tripod.com

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 11th Dec 2005 12:23
I think that code is from Zotoaster...

Immunity and Annihalation makes Immunihalation...
Torq
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location:
Posted: 11th Dec 2005 14:24
Ah then make it official. This is Zootoasters code and its quite helpful in learning to mess with Sin and Cos.

Thanks Zootoaster!

http://badtempergames.tripod.com

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 12th Dec 2005 14:40
Lol - just checking to see if I could learn anything new about sin and cos

Login to post a reply

Server time is: 2024-11-23 10:52:20
Your offset time is: 2024-11-23 10:52:20