📄 threejs/Addons/Misc/RollerCoasterGeometry

File: RollerCoasterGeometry.md | Updated: 11/15/2025


title: RollerCoasterGeometry category: Addons layout: docs

RollerCoasterGeometry

A procedural roller coaster geometry.

Import

RollerCoasterGeometry is an addon, and must be imported explicitly, see Installation#Addons.

import { RollerCoasterGeometry } from 'three/addons/misc/RollerCoaster.js';

Constructor

new RollerCoasterGeometry( curve : Curve, divisions : number )

Constructs a new geometry.

curve | The curve to generate the geometry along.
---|---
divisions | The number of divisions which defines the detail of the geometry.

Source

examples/jsm/misc/RollerCoaster.js