CubbyFlow::RigidBodyCollider< N >::Builder Class Referencefinal
Front-end to create RigidBodyCollider objects step by step. More...
#include <Core/Geometry/RigidBodyCollider.hpp>
Public Member Functions | |
Builder & | WithSurface (const std::shared_ptr< Surface< N >> &surface) |
Returns builder with surface. More... | |
Builder & | WithLinearVelocity (const Vector< double, N > &_linearVelocity) |
Returns builder with linear velocity. More... | |
Builder & | WithAngularVelocity (const AngularVelocity< N > &_angularVelocity) |
Returns builder with angular velocity. More... | |
RigidBodyCollider | Build () const |
Builds RigidBodyCollider. More... | |
std::shared_ptr< RigidBodyCollider< N > > | MakeShared () const |
Builds shared pointer of RigidBodyCollider instance. More... | |
Detailed Description
template<size_t N>
class CubbyFlow::RigidBodyCollider< N >::Builder
Front-end to create RigidBodyCollider objects step by step.
Member Function Documentation
◆ Build()
template<size_t N>
RigidBodyCollider CubbyFlow::RigidBodyCollider< N >::Builder::Build | ( | ) | const |
Builds RigidBodyCollider.
◆ MakeShared()
template<size_t N>
std::shared_ptr<RigidBodyCollider<N> > CubbyFlow::RigidBodyCollider< N >::Builder::MakeShared | ( | ) | const |
Builds shared pointer of RigidBodyCollider instance.
◆ WithAngularVelocity()
template<size_t N>
Builder& CubbyFlow::RigidBodyCollider< N >::Builder::WithAngularVelocity | ( | const AngularVelocity< N > & | _angularVelocity | ) |
Returns builder with angular velocity.
◆ WithLinearVelocity()
template<size_t N>
Builder& CubbyFlow::RigidBodyCollider< N >::Builder::WithLinearVelocity | ( | const Vector< double, N > & | _linearVelocity | ) |
Returns builder with linear velocity.
◆ WithSurface()
template<size_t N>
Builder& CubbyFlow::RigidBodyCollider< N >::Builder::WithSurface | ( | const std::shared_ptr< Surface< N >> & | surface | ) |
Returns builder with surface.
The documentation for this class was generated from the following file:
- Core/Geometry/RigidBodyCollider.hpp