Major Update - Physique Fixed Update And Thread
Physics process run in a fixed update in a thread
This commit is contained in:
@@ -160,7 +160,7 @@ bool Physics::SphereCubeOverlap(Object* cube, Object* sphere)
|
||||
XMVECTOR position2 = sphere->GetPosition();
|
||||
|
||||
XMVECTOR scale1 = cube->GetScale();
|
||||
XMVECTOR scale2 = sphere->GetScale() / 2;
|
||||
XMVECTOR scale2 = XMVectorScale(sphere->GetScale(), 0.5f);
|
||||
|
||||
XMVECTOR min1 = position1 - scale1;
|
||||
XMVECTOR max1 = position1 + scale1;
|
||||
|
||||
Reference in New Issue
Block a user