Tomo0613
Tomo0613
Instead of random numbers, i did the following: I created a height field in blender then extracted the height values as an array of arrays (with the help of a...
@baronwatts If still interested here's a function that basically does that: I did some experiments [(same repo)](https://github.com/tomo0613/offroadJS) note: - the blender part from above is still relevant except the .py...
this is the way: - how it works?: cast rays upwards from below the mesh to calculate the height values - why async?: ray casting can be slow, if used...
It's hard to tell what is the problem, without seeing the code, however I have some working examples that might can help you: https://github.com/tomo0613/offroadJS/blob/master/client/raycastVehicle.js https://github.com/tomo0613/offroadJS_v2/blob/master/src/vehicle/Vehicle.ts Also the official raycast vehicle...
Maybe one of the followings helps. https://codepen.io/Tomo0613/pen/xVjqqK In this solution the Y axis is changing as well, and I'm struggling with multiple key presses. And i found this BasicThirdPersonGame tutorial....
(yeah... a lot of syntax errors... I wrote that a long time ago :) ) Which parts are the most chaotic? I could give you some clarification
this line: `var accelerationImpulse = new CANNON.Vec3(0,0,acceleration);` should be: `var accelerationDirection = new CANNON.Vec3(0,0,acceleration);` (different name) it is only used for `vmult(acc.Dir.)` In JS (in browser) if you omit the...
check these questions: https://github.com/schteppe/cannon.js/issues/270 https://github.com/schteppe/cannon.js/issues/122 https://github.com/schteppe/cannon.js/issues/117
I have not really faced frame rate issues so far. (I guess it's because I tend to use low poly 3d models, and primitive 3d shapes) in [my other project](https://tomo0613.github.io/offroadJS_v2_demo/)...