ColliderSet2.h
Go to the documentation of this file.
Front-end to create ColliderSet2 objects step by step.
Definition: ColliderSet2.h:55
size_t NumberOfColliders() const
Returns number of colliders.
std::shared_ptr< Collider2 > Collider2Ptr
Shared pointer type for the Collider2.
Definition: Collider2.h:112
Vector2D VelocityAt(const Vector2D &point) const override
Returns the velocity of the collider at given point.
Definition: pybind11Utils.h:24
Builder & WithColliders(const std::vector< Collider2Ptr > &others)
Returns builder with other colliders.
void AddCollider(const Collider2Ptr &collider)
Adds a collider to the set.
ColliderSet2Ptr MakeShared() const
Builds shared pointer of ColliderSet2 instance.
std::shared_ptr< ColliderSet2 > ColliderSet2Ptr
Shared pointer for the ColliderSet2 type.
Definition: ColliderSet2.h:50