Spline curves and Paths

Anyone know if it possible to add curves or paths in jMonkeyEngine for creating a racetrack for a racing game?

1 Like

I started one, but it’s not complete.

2 Likes

It sounds like you want a MotionPath. See TestMotionPath for an example:
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-examples/src/main/java/jme3test/animation/TestMotionPath.java

2 Likes

Thanks sgold. Will have a look at that.

2 Likes

An actual ‘road’ mesh based on curve points: https://github.com/JulienGreen/RoadTessalation/blob/master/RoadMesh.java

1 Like

Thanks Murph9. Might be what i am looking for.

1 Like