Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Offline Rendering] update Mesh Colliders
#7
(03-03-2022, 12:51 PM)hawk94 Wrote: Thank you very much for your explanation.

I've done some search on Unity and heard  that the deformed mesh collider update really consumes much of computer resource.

Therefore I decide to switch to offline rendering and with slow motion effect. My intention now is to make a short introduction clip with slow motion effect.
I have learned to use the Time.timescale in script to make Unity run in slow motion effect. I tested many particles collide on a static high resolution mesh. Without the Time.timescale script, particle collision nearly crashes my Unity. However with the timescale set to 0.2, everything becomes ok. Moreover, decimating the mesh to 30% resolution makes the collision render smoother.

So could you please help me with modifying the ObiCollider script to update skin mesh collider?

There's no need to modify the ObiCollider script in any way. You simply call UpdateMeshData() on the tracker:

Code:
(collider.Tracker as ObiMeshShapeTracker).UpdateMeshData();

Check the API docs for details.
Reply


Messages In This Thread
RE: [Offline Rendering] update Mesh Colliders - by josemendez - 15-03-2022, 10:39 AM