physx-js-webidl icon indicating copy to clipboard operation
physx-js-webidl copied to clipboard

Creation of PxHeightField Geometry

Open ghost opened this issue 1 year ago • 5 comments

Hi there Mr. fabmax, again thanks for always answering my small issues and helping everyone out, even my whole game idea is reliant on your library to a very high degree, anyways, the issue that brought me here once more is that there are some things i see missing, like this: github.com/fabmax/physx-jni/issues/74

Here you are telling someone that they should use PxHeightFieldSample.SIZEOF, so what do you think should be the answer for us in the JS side?

let heightFieldDesc = new PhysX.PxHeightFieldDesc() heightFieldDesc.samples.stride = 12 //PxHeightFieldSample 8 bytes? 12 bytes?

i tried going through your physx-jni and kool-engine (such cool engine) and the only piece i'm missing is that one, even tried setting the stride value from 5 to 52(there is no way it is more than 16) and testing every number generating a flat height map but every time the collisions weren't right which makes me think that there is something else wrong, i should have hit the size, right?

Truly yours, your biggest fan, this is Stan.

ghost avatar Nov 30 '24 16:11 ghost