Minor update - ui x physix

This commit is contained in:
2025-01-15 20:42:42 +01:00
parent c707e49561
commit 39fa32603f
6 changed files with 106 additions and 100 deletions

View File

@@ -30,7 +30,7 @@ void Physics::SetGravity(XMVECTOR gravity)
// Apply gravity to an object
void Physics::ApplyGravity(Object* object, float dragValue)
{
if (object == nullptr) // Verify if the object is not null
if (this == nullptr || object == nullptr) // Verify if 'this' and 'object' are not null
{
return;
}