Three.js - Move Camera Inside Tube Geometry
In a 3d scene tube geometry is built by loading 200 points as JSON data from external javascript file. Below is the complete code:
Solution 1:
There are several ways to move inside a TubeGeometry. If you need just to follow some rails, you can create a spline, and then use
spline.getPointAt( 0 -1 )
on your car, or camera, or whatever you are moving in the tube. Things get a bit tricky with rotation.
Post a Comment for "Three.js - Move Camera Inside Tube Geometry"