You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project has 4 spheres in a box.
A tween changes the size of the box.
I want to smoothly scale the mesh collider to match the scale of that box.
If I can correctly scale the mesh collider, the movement of the spheres should change.
I suspect the reason is that the following code in realtimeScaling.js is not working for some reason. col.system.implementations.mesh.doRecreatePhysicalShape(col);
Previously, in order to resize the mesh collider in real time, the above code could be called every frame to do the update.
However, one day it stopped working.
I understand that this is a very costly process, but I really need this.
I have been developing a project that uses this program for a long time and it did not work on previous projects either.
Any help would be much appreciated.
Thank you very much.
The text was updated successfully, but these errors were encountered:
Latenos
changed the title
Scaling of mesh colliders in real time
Mesh collider no longer scales in real time
Apr 2, 2024
Description
I have been unable to update the mesh collider scale since around March of this year.
I have prepared a minimal project on this issue, please see
https://playcanvas.com/project/1204845/overview/meshcolliderscaletest
This project has 4 spheres in a box.
A tween changes the size of the box.
I want to smoothly scale the mesh collider to match the scale of that box.
If I can correctly scale the mesh collider, the movement of the spheres should change.
I suspect the reason is that the following code in realtimeScaling.js is not working for some reason.
col.system.implementations.mesh.doRecreatePhysicalShape(col);
Previously, in order to resize the mesh collider in real time, the above code could be called every frame to do the update.
However, one day it stopped working.
I understand that this is a very costly process, but I really need this.
I have been developing a project that uses this program for a long time and it did not work on previous projects either.
Any help would be much appreciated.
Thank you very much.
The text was updated successfully, but these errors were encountered: