Obi Official Forum
optimizing moving colliders - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: optimizing moving colliders (/thread-3211.html)



optimizing moving colliders - burspa - 01-12-2021

Hi,

I have a rope that interacts with a lot of moving obi colliders that make up a human. 
The profilers seems to show quite a high cost to moving all the colliders as needed.
Any tips for increasing performance on moving colliders?

Cheers


RE: optimizing moving colliders - josemendez - 01-12-2021

(01-12-2021, 02:52 AM)burspa Wrote: Hi,

I have a rope that interacts with a lot of moving obi colliders that make up a human. 
The profilers seems to show quite a high cost to moving all the colliders as needed.
Any tips for increasing performance on moving colliders?

Cheers

Hi there,

All that's done for colliders is copy their transform data. For primitive colliders shape data (box size, for instance) is also copied, for more complex colliders like meshes or terrains their shape data is only copied once.

So in case you're using primitive colliders, this should be quite fast unless you're using thousands of them. How many colliders do you have, and what type of colliders?