This Unity and C# project showcases the mathematical principles behind roller coaster construction, inspired by Planet Coaster. It provides an exploration of Bezier curves in 3D, including techniques like De Casteljau's Algorithm, Bernstein Polynomial Form, Tangent Calculation, and Continuity (C0, C1, C2).
The project investigates:
- Bezier Curves: Used to construct roller coaster tracks utilizing cubic splines
- De Casteljau's Algorithm: Basis for evaluating Bezier curves
- Tangent Orientation: Keeps the coaster cart perpendicular to the track
- Continuity: Chaining cubic splines for smooth coaster designs
- Bezier Curve Calculation: Creates each discrete Bezier curve using four waypoints for track construction
- Mesh Generation: Visualizes the track by generating a 3D mesh from Bezier points
- Coaster Cart Movement: A cart moving along the track, oriented to stay perpendicular to the track
- Gizmos: Visual representation of waypoints and the Bezier curve in the Unity editor
- Unity Editor (Version: 2022.3.2f1)
This project is licensed under the MIT License. See the LICENSE file for details.