Import
RapierHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { RapierHelper } from 'three/addons/helpers/RapierHelper.js';
Constructor
new RapierHelper( world : RAPIER.world )
Constructs a new Rapier debug helper.
| world |
The Rapier world to visualize. |
Properties
.world : RAPIER.world
The Rapier world to visualize.
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.update()
Call this in the render loop to update the outlines.