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

Question how do you build the race Track? #6

Open
arpu opened this issue Dec 17, 2021 · 1 comment
Open

Question how do you build the race Track? #6

arpu opened this issue Dec 17, 2021 · 1 comment

Comments

@arpu
Copy link

arpu commented Dec 17, 2021

Hello this is more a question i looked at the cool Demo at https://fabmax.github.io/kool/kool-js/
and i see the car glb 3d model but how do you create the Track?

@fabmax
Copy link
Collaborator

fabmax commented Dec 18, 2021

The track is not loaded from a model but procedurally generated. It is defined by a few control points in VehicleDemo.makeTrack() (line 181 in VehicleDemo.kt )

The first Vec3f defines the position of the control point, the second Vec3f defines the direction in that point.

The control points are then used by the Track class to generate the actual geometry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants