#Add/Remove Physics Components at Runtime
1 messages · Page 1 of 1 (latest)
Add/Remove Physics Components at Runtime
Anyone?
Is there a reason you need to remove all of them instead of just something specific (index to stop it being a physics object, velocity to stop it being dynamic etc)
i debated adding/removing the PhysicsWorldIndex .... but mainly I am doing some benchmarking with tens of thousands of entities, and there are quite a few physics components needed for an entity to participate in the physics sim, which take up a reasonable amount of space... resulting in a lot less entities per chunk. If there was an easy way to add/remove all physics components at runtime, it would be preferred.