RigidBodyCollider2.h
Go to the documentation of this file.
Builder & WithLinearVelocity(const Vector2D &linearVelocity)
Returns builder with linear velocity.
std::shared_ptr< RigidBodyCollider2 > RigidBodyCollider2Ptr
Shared pointer for the RigidBodyCollider2 type.
Definition: RigidBodyCollider2.h:48
static Builder GetBuilder()
Returns builder fox RigidBodyCollider2.
Builder & WithSurface(const Surface2Ptr &surface)
Returns builder with surface.
Vector2D VelocityAt(const Vector2D &point) const override
Returns the velocity of the collider at given point.
Definition: pybind11Utils.h:24
RigidBodyCollider2 Build() const
Builds RigidBodyCollider2.
double angularVelocity
Angular velocity of the rigid body.
Definition: RigidBodyCollider2.h:31
RigidBodyCollider2Ptr MakeShared() const
Builds shared pointer of RigidBodyCollider2 instance.
RigidBodyCollider2(const Surface2Ptr &surface)
Constructs a collider with a surface.
Builder & WithAngularVelocity(double angularVelocity)
Returns builder with angular velocity.
std::shared_ptr< Surface2 > Surface2Ptr
Shared pointer for the Surface2 type.
Definition: Surface2.h:100
Vector2D linearVelocity
Linear velocity of the rigid body.
Definition: RigidBodyCollider2.h:25
Front-end to create RigidBodyCollider2 objects step by step.
Definition: RigidBodyCollider2.h:53