| 9 | |
| 10 | |
| 11 | void BoxCollider::AddHook(const WeakRef<Entity>& e) { |
| 12 | auto body = e.get()->Components().GetComponentOfSubclass<PhysicsBodyComponent>(); |
| 13 | //add the physics body to the Entity's physics actor |
| 14 | collider = PxRigidActorExt::createExclusiveShape(*(body->rigidActor), PxBoxGeometry(extent.x, extent.y, extent.z), *material->getPhysXmat()); |
| 15 | } |
| 16 | |
| 17 | |
| 18 | void RavEngine::PhysicsCollider::SetType(CollisionType type) |
nothing calls this directly
no test coverage detected