| 499 | } |
| 500 | |
| 501 | void PhysicsSystem::compoundShapeAddChild(Handle::CollisionShapeHandle target, Handle::CollisionShapeHandle childShape, const Math::Matrix& localTransform) |
| 502 | { |
| 503 | CollisionShape& ts = getCollisionShape(target); |
| 504 | CollisionShape& cs = getCollisionShape(childShape); |
| 505 | |
| 506 | assert(ts.shapeType == CollisionShape::Compound); |
| 507 | |
| 508 | btCompoundShape* compShape = reinterpret_cast<btCompoundShape*>(ts.collisionShape); |
| 509 | |
| 510 | btTransform btr; |
| 511 | btr.setFromOpenGLMatrix(localTransform.mv); |
| 512 | compShape->addChildShape(btr, cs.collisionShape); |
| 513 | } |
| 514 | |
| 515 | void PhysicsSystem::postProcessLoad() |
| 516 | { |
no outgoing calls
no test coverage detected