PlayRho  2.0.0
An interactive physics engine & library.
VelocityConstraint.hpp File Reference

Definition of the VelocityConstraint class and closely related code. More...

#include <cassert>
#include <type_traits>
#include <playrho/BodyID.hpp>
#include <playrho/Matrix.hpp>
#include <playrho/Real.hpp>
#include <playrho/Settings.hpp>
#include <playrho/Span.hpp>
#include <playrho/Units.hpp>
#include <playrho/Vector.hpp>
#include <playrho/Vector2.hpp>
#include <playrho/Vector3.hpp>
#include <playrho/d2/BodyConstraint.hpp>
#include <playrho/d2/UnitVec.hpp>
Include dependency graph for VelocityConstraint.hpp:

Classes

struct  playrho::d2::VelocityConstraint::Conf
 Configuration data for velocity constraints. More...
 
struct  playrho::d2::VelocityConstraint::Point
 Velocity constraint point. More...
 
class  playrho::d2::VelocityConstraint
 The per-contact velocity constraint data structure. More...
 

Namespaces

 playrho
 
 playrho::d2
 

Functions

UnitVec playrho::d2::GetNormal (const VelocityConstraint &vc) noexcept
 
Momentum playrho::d2::GetNormalImpulseAtPoint (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the normal impulse at the given point from the given velocity constraint.
 
Momentum2 playrho::d2::GetNormalImpulses (const VelocityConstraint &vc)
 Gets the normal impulses of the given velocity constraint.
 
Mass playrho::d2::GetNormalMassAtPoint (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the normal mass at the given point from the given velocity constraint.
 
Length2 playrho::d2::GetPointRelPosA (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the point relative position A data.
 
Length2 playrho::d2::GetPointRelPosB (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the point relative position B data.
 
VelocityConstraint::Conf playrho::d2::GetRegVelocityConstraintConf (const StepConf &conf) noexcept
 Gets the regular phase velocity constraint configuration from the given step configuration.
 
UnitVec playrho::d2::GetTangent (const VelocityConstraint &vc) noexcept
 Gets the tangent from the given velocity constraint data.
 
Momentum playrho::d2::GetTangentImpulseAtPoint (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the tangent impulse at the given point from the given velocity constraint.
 
Momentum2 playrho::d2::GetTangentImpulses (const VelocityConstraint &vc)
 Gets the tangent impulses of the given velocity constraint.
 
Mass playrho::d2::GetTangentMassAtPoint (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the tangent mass at the given point from the given velocity constraint.
 
VelocityConstraint::Conf playrho::d2::GetToiVelocityConstraintConf (const StepConf &conf) noexcept
 Gets the TOI phase velocity constraint configuration from the given step configuration.
 
LinearVelocity playrho::d2::GetVelocityBiasAtPoint (const VelocityConstraint &vc, VelocityConstraint::size_type index)
 Gets the velocity bias at the given point from the given velocity constraint.
 
void playrho::d2::SetNormalImpulseAtPoint (VelocityConstraint &vc, VelocityConstraint::size_type index, Momentum value)
 Sets the normal impulse at the given point of the given velocity constraint.
 
void playrho::d2::SetNormalImpulses (VelocityConstraint &vc, const Momentum2 &impulses)
 Sets the normal impulses of the given velocity constraint.
 
void playrho::d2::SetTangentImpulseAtPoint (VelocityConstraint &vc, VelocityConstraint::size_type index, Momentum value)
 Sets the tangent impulse at the given point of the given velocity constraint.
 
void playrho::d2::SetTangentImpulses (VelocityConstraint &vc, const Momentum2 &impulses)
 Sets the tangent impulses of the given velocity constraint.
 

Detailed Description

Definition of the VelocityConstraint class and closely related code.