WonderlandEngine / api

Wonderland Engine's JavaScript API.
MIT License
10 stars 6 forks source link

exposing transform parameters in Physx component #24

Open yinchy opened 4 months ago

yinchy commented 4 months ago

image It would be useful to be able to change the scaling (and maybe even the translation and rotations) of a physx component from code. This is especially important for convexMesh and triangleMesh instances

This would allow for easier dynamic configuration of different instances of physics objects at runtime.

yinchy commented 4 months ago

It appears that scaling for convexMesh can be set with the extents field

Would be useful to have access the translation and rotation fields somehow as well