Game Career Guide Forums

Game Career Guide Forums (
-   Programming (
-   -   (Co)Sines (

jwalters 08-05-2009 11:04 AM

Just curious, what's the coolest thing you've created using sines or cosines? I know they can be used to emulate wave motion, or oscillating objects like a hovering spaceship or a light source swinging back and forth. What other uses can you think of?

I'm planning to write a blog post on the use of sines (based on my little experience) and would like to include some of your ideas. If you have a demo or screenshot of something cool I would love to see it!

ScHiZo 08-05-2009 01:57 PM

I made a 3D carousel for a game once like the ones on w/ cos and sin. I thought that was cool, but it didn't make the final product :p

Protector one 08-06-2009 01:14 AM

Meh, I'm not that into cosines. (Sines, on the other hand...!)
I think the 'coolest' thing I ever did with them was create a wavy flight path for a spaceship in a Flash animation forum sig. (It's below the ugly pants.)

DTR 08-06-2009 10:26 AM

Casted a floor for a raycaster with sine and it, as well as use it to calculate the "real" distance to the intersection of ray and wall line instead of getting the horrible fishbowl effect inducing "distorted" distance.

Not particularly "cool" but handy.

All times are GMT -8. The time now is 06:57 AM.

Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.