Math/Angle: Rename angle field to value

This commit is contained in:
Lynix
2018-10-10 23:12:27 +02:00
parent 7613f50a6e
commit fb11fe1ecf
6 changed files with 42 additions and 42 deletions

View File

@@ -307,7 +307,7 @@ namespace Nz
void RigidBody2D::SetAngularVelocity(const RadianAnglef& angularVelocity)
{
cpBodySetAngularVelocity(m_handle, angularVelocity.angle);
cpBodySetAngularVelocity(m_handle, angularVelocity.value);
}
void RigidBody2D::SetElasticity(float friction)
@@ -450,7 +450,7 @@ namespace Nz
void RigidBody2D::SetRotation(const RadianAnglef& rotation)
{
cpBodySetAngle(m_handle, rotation.angle);
cpBodySetAngle(m_handle, rotation.value);
if (m_isStatic)
{
m_world->RegisterPostStep(this, [](Nz::RigidBody2D* body)