Thursday, 1 November 2012

Shear Coaster's path with simple math equation

I have been thinking of posting this image but I couldn't up till now. The program won't run without the controller.


Shear coaster's path


It is simple. Yes, it is. Now you know why I said I made fool of myself.

This is the math equation used to make this path:
x = i
z = 6f * (float)Math.Sin(x * Math.PI / 40) + 2f * (float)Math.Sin(x * Math.PI / 20)

No comments:

Post a Comment