Open roman01la opened 1 year ago
I could not neither
It's in the latest canary release, see:
https://github.com/dimforge/rapier.js/blob/master/src.ts/control/ray_cast_vehicle_controller.ts
It's been half of an year, but control/ray_cast_vehicle_controller.d.ts
is still missed from latest npm package (v0.11.2). Can it be added please in near foreseeable future?
using canary build the vehicle rig is working great on localhost
but
after building using vite.js, the prod version shows this error when const world = new RAPIER.World()
is created
any clue why this happens ? v0.11.2 does not have this issue
found a vite/rollup fix ( thanks to @CodyJasonBennett )
This excludes rapier from "tree shaking" , which fixed the build issue
add this into the vite.config file
// vite.config.js
import { defineConfig } from 'vite'
export default defineConfig({
...
plugins: [
{
name: 'no-treeshake-rapier',
transform(_code, id) {
if (id.includes('@dimforge/rapier3d')) {
return { moduleSideEffects: 'no-treeshake' }
}
},
},
],
})
Hello. Are bindings to
DynamicRayCastVehicleController
planned for RapierJS? I couldn't find any pointers what's the status of vehicle controller bindings for JS.