suddenly4

Results 13 comments of suddenly4

it is possible https://codepen.io/suddenly4/pen/zYLQgxy https://codepen.io/daniil-falin/pen/yLxpYmz

It is possible to set the position explicitly, cache the previous one (memoize). Explicitly assign if Nan . You can receive or set the position from any message, including via...

I thing set ray by to every wheel, or just near point for example body car/ point (shock absorber etc) who look At directon set how you want (options: only...

> Can anyone help me? I created a duplicate mesh as the base points and indexes soft body. This mesh make how ghost object and make possible update motion state...

I suggest the following explanation infact 1. You can create your own rays and cast them down from an object, not from a rotating element, or from a wheel, but...

> Example: > > ``` > const a = [-0.0000064798259700182825, -0.0013201627880334854, 0.0000027575993044592906, 0.9999991059303284] > const t = new Ammo.btTransform(); > t.setIdentity(); > t.setRotation(new Ammo.btQuaternion(a[0], a[1], a[2], a[3])); > const r...

When you make new shape you may add some name/ tag for example: your3dmesh.name = "your3dmesh"; your3dmesh.userData.tag = "your3dmesh"; .... const body = new Ammo.btRigidBody(rbInfo); your3dmesh.userData.physicsBody = body; body.threeObject =...

I tested different approaches (create new geometry in parallel tread, then send to main) https://jsfiddle.net/suddenly4/5wng37vd/2/ to create a soft body in a parallel flow should be on the same principle,...

If you make more ribs in the mesh, then the vibration is reduced in the calculations. (mesh density, subdivide, tesselate) and their is an option you have CCD

try possible create some btTriangleMesh then add their to btCompoundShape how alternative btConvexTriangleMeshShape or btBvhTriangleMeshShape