Physics2D/Constraint2D: Add method GetLastImpulse
This commit is contained in:
parent
60b7671b54
commit
e6c74fbc5f
|
|
@ -39,6 +39,7 @@ namespace Nz
|
||||||
RigidBody2D& GetBodyB();
|
RigidBody2D& GetBodyB();
|
||||||
const RigidBody2D& GetBodyB() const;
|
const RigidBody2D& GetBodyB() const;
|
||||||
float GetErrorBias() const;
|
float GetErrorBias() const;
|
||||||
|
float GetLastImpulse() const;
|
||||||
float GetMaxBias() const;
|
float GetMaxBias() const;
|
||||||
float GetMaxForce() const;
|
float GetMaxForce() const;
|
||||||
PhysWorld2D& GetWorld();
|
PhysWorld2D& GetWorld();
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,11 @@ namespace Nz
|
||||||
return float(cpConstraintGetErrorBias(m_constraint));
|
return float(cpConstraintGetErrorBias(m_constraint));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float Constraint2D::GetLastImpulse() const
|
||||||
|
{
|
||||||
|
return float(cpConstraintGetImpulse(m_constraint));
|
||||||
|
}
|
||||||
|
|
||||||
float Constraint2D::GetMaxBias() const
|
float Constraint2D::GetMaxBias() const
|
||||||
{
|
{
|
||||||
return float(cpConstraintGetMaxBias(m_constraint));
|
return float(cpConstraintGetMaxBias(m_constraint));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue