Merge remote-tracking branch 'origin/PlayerControllerWIthNewPhysics' into PlayerControllerWIthNewPhysics
This commit is contained in:
commit
0c4f154c24
|
@ -558,7 +558,7 @@ namespace SHADE
|
|||
}
|
||||
|
||||
#else
|
||||
return SHVec2{ GetDirector(index)->GetWidth(),GetDirector(index)->GetHeight() };
|
||||
return SHVec2{ GetDirector(index)->GetWidth(),GetDirector(index)->GetWidth() / screenAspectRatio };
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ namespace SHADE
|
|||
|
||||
void SHPhysicsDebugDrawSystem::PhysicsDebugDraw::Execute(double) noexcept
|
||||
{
|
||||
#ifdef SHEDITOR
|
||||
auto* physicsDebugDrawSystem = reinterpret_cast<SHPhysicsDebugDrawSystem*>(GetSystem());
|
||||
|
||||
if (!physicsDebugDrawSystem->IsDebugDrawActive())
|
||||
|
@ -109,6 +110,7 @@ namespace SHADE
|
|||
debugDrawSystem->DrawWireCube(TRS, AABB_COLOUR);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace SHADE
|
||||
|
|
Loading…
Reference in New Issue