| Parameter | Description |
|---|---|
| world | The world to find the PhysicsShape in. |
| filter | The filter to control what proxies are created. |
| destroyExistingProxies | Controls if any existing proxies are destroyed before cloning from the specified world. If false, care should be taken that any existing proxies refer to PhysicsShape otherwise a mix of user-handles will be present. |
int How many proxies were cloned.
Clear any existing proxies and clone all PhysicsShape found in the specified PhysicsWorld. Each proxy created will have a user-handle assigned as PhysicsShape.physicsHandle. This means you can get the referenced shape by using PhysicsShape.PhysicsShape.
| Parameter | Description |
|---|---|
| world | The world to find the PhysicsShape in. |
| aabb | The AABB used to discover PhysicsShape in the specified world. If the AABB size is size (default) then the whole world will be discovered. |
| filter | The filter to control what proxies are created. |
| destroyExistingProxies | Controls if any existing proxies are destroyed before cloning from the specified world. If false, care should be taken that any existing proxies refer to PhysicsShape otherwise a mix of user-handles will be present. |
int How many proxies were cloned.
Clear any existing proxies and clone any PhysicsShape found in the specified PhysicsWorld overlapping the specified PhysicsAABB. Each proxy created will have a user-handle assigned as PhysicsShape.physicsHandle. This means you can get the referenced shape by using PhysicsShape.PhysicsShape.