16 friend class ::PhysicsManager;
20 explicit Trigger(
const btTransform& transform);
24 void Process(btCollisionWorld& world);
29 void ForObserver(btCollisionObject* body,
const std::function<
void(
TriggerObserver&)>& fun);
31 void SetCollisionShape(std::shared_ptr<Shape> shape);
32 void SetPosition(
const btVector3& position);
35 std::unique_ptr<btCollisionObject> trigger =
nullptr;
36 std::shared_ptr<Shape> shape =
nullptr;
37 std::vector<std::unique_ptr<TriggerObserver>> observers;
Definition: Trigger.hpp:15
Definition: TriggerObserver.hpp:16
Updates the physics of the world.
Definition: PhysicsManager.hpp:28
Definition: IShapeEditor.hpp:7