Physics2D: Expose elasticity/friction/surface velocity
This commit is contained in:
@@ -17,6 +17,11 @@ namespace Nz
|
||||
return GetMassCenter(coordSys);
|
||||
}
|
||||
|
||||
inline std::size_t RigidBody2D::GetShapeCount() const
|
||||
{
|
||||
return m_shapes.size();
|
||||
}
|
||||
|
||||
inline void RigidBody2D::SetAngularDamping(float angularDamping)
|
||||
{
|
||||
SetMomentOfInertia(angularDamping);
|
||||
|
||||
Reference in New Issue
Block a user