Closed IRobot1 closed 2 years ago
It is an array so it does not matter.
I'll work on an example in NGT examples to see if I can figure out what's going on.
What's the command line to run the sandbox to test changes?
cd app/sandbox nx serve
npx nx serve sandbox
I've tracked it down to this code in raycast-vehicle.ts
this.effect<[CannonWorkerAPI, THREE.Object3D]>(
tapEffect(() => {
tapEffect isn't getting called.
how are you using useRaycastVehicle
?
Figured it out. Need to pass false to indicate its not used in the template.
It currently looks more like a duck paddling than a card
There was indeed a bug which I released a fix in the latest version. Also check out https://github.com/nartc/angular-three/tree/main/apps/sandbox/src/app/raycast-vehicle
@IRobot1 have you been able to recreate the raycastVehicle example?
Raycast Vehicle Physics Example now working
After converting the cannon Raycast Vehicle example to NGT, I've been trying to figure out why the wheels won't rotate.
NGT useRaycastVehicle has the following code
The corresponding code in cannon worker implementation of addRaycastVehicle
Its expecting the first property to be called chassisBody, not chassisBodyUUID and the second property to be wheels, not wheelUUIDs.
Do you agree?