Internal joint concept interface. More...
#include <playrho/d2/detail/JointConcept.hpp>
Public Member Functions | |
virtual | ~JointConcept ()=default |
Explicitly declared virtual destructor. | |
virtual std::unique_ptr< JointConcept > | Clone_ () const =0 |
Clones this concept and returns a pointer to a mutable copy. More... | |
virtual BodyID | GetBodyA_ () const noexcept=0 |
Gets the ID of body-A. | |
virtual BodyID | GetBodyB_ () const noexcept=0 |
Gets the ID of body-B. | |
virtual bool | GetCollideConnected_ () const noexcept=0 |
Gets whether collision handling should be done for connected bodies. | |
virtual const void * | GetData_ () const noexcept=0 |
Gets the data for the underlying configuration. | |
virtual void * | GetData_ () noexcept=0 |
Gets the data for the underlying configuration. | |
virtual TypeID | GetType_ () const noexcept=0 |
Gets the use type information. More... | |
virtual void | InitVelocity_ (const Span< BodyConstraint > &bodies, const StepConf &step, const ConstraintSolverConf &conf)=0 |
Initializes the velocities for this joint. | |
virtual bool | IsEqual_ (const JointConcept &other) const noexcept=0 |
Equality checking function. | |
virtual bool | ShiftOrigin_ (const Length2 &value) noexcept=0 |
Call to notify joint of a shift in the world origin. | |
virtual bool | SolvePosition_ (const Span< BodyConstraint > &bodies, const ConstraintSolverConf &conf) const =0 |
Solves the positions for this joint. | |
virtual bool | SolveVelocity_ (const Span< BodyConstraint > &bodies, const StepConf &step)=0 |
Solves the velocities for this joint. | |
Internal joint concept interface.
|
pure virtual |
Clones this concept and returns a pointer to a mutable copy.
std::bad_alloc
or any exception that's thrown by the constructor for the model's underlying data type. std::bad_alloc | if there's a failure allocating storage. |
Implemented in playrho::d2::detail::JointModel< T >.
|
pure virtualnoexcept |
Gets the use type information.
Implemented in playrho::d2::detail::JointModel< T >.