Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function based road segment generation #16

Open
Joshuawd190 opened this issue Dec 15, 2022 · 0 comments
Open

Function based road segment generation #16

Joshuawd190 opened this issue Dec 15, 2022 · 0 comments
Assignees
Labels
suggestion External ideas/inspiration

Comments

@Joshuawd190
Copy link

Currently, the different road segments that can be added are manually defined.
So the more complex segments (like S curve or low rolling hills) are just a collection of add road calls with arguments

I think it'd be cool to define a road segment according to a pair of functions
One for the "height" of the road and one for the shape as seen from above.

y = f(z) as seen from the side
x = f(z) as seen from above

This would make it easier to add very silly roads and roads with more variety.

It is also more Math, so maybe that's a bad idea. (-_-;)

@Coestar Coestar self-assigned this Dec 15, 2022
@Coestar Coestar added the suggestion External ideas/inspiration label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion External ideas/inspiration
Projects
None yet
Development

No branches or pull requests

2 participants