| 220 | } |
| 221 | |
| 222 | void PhysicsSystem::deleteCollisionShape(Handle::CollisionShapeHandle shape) |
| 223 | { |
| 224 | // Remove from convex-cache |
| 225 | for (auto& c : m_ShapeCache) |
| 226 | { |
| 227 | if (c.second == shape) |
| 228 | { |
| 229 | m_ShapeCache.erase(c.first); |
| 230 | break; |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | Handle::CollisionShapeHandle PhysicsSystem::makeBoxCollisionShape(const Math::float3& halfExtends) |
| 236 | { |