Minor - Refactor name - V10.5.0
This commit is contained in:
@@ -4,21 +4,21 @@
|
||||
#include "object.h"
|
||||
#include "math.h"
|
||||
|
||||
class Physics : public Object
|
||||
class physics : public object
|
||||
{
|
||||
public:
|
||||
Physics();
|
||||
explicit Physics(const Physics&); // Use explicit to avoid implicit conversion
|
||||
~Physics();
|
||||
physics();
|
||||
explicit physics(const physics&); // Use explicit to avoid implicit conversion
|
||||
~physics();
|
||||
|
||||
XMVECTOR GetGravity() const; // Get the gravity value
|
||||
void SetGravity(XMVECTOR gravity); // Define the gravity value
|
||||
void ApplyGravity(Object*, float); // Apply gravity to an object
|
||||
void AddForce(Object*, XMVECTOR);
|
||||
bool IsColliding(Object*, Object*);
|
||||
bool CubesOverlap(Object*, Object*);
|
||||
bool SpheresOverlap(Object*, Object*);
|
||||
bool SphereCubeOverlap(Object*, Object*);
|
||||
void ApplyGravity(object*, float); // Apply gravity to an object
|
||||
void AddForce(object*, XMVECTOR);
|
||||
bool IsColliding(object*, object*);
|
||||
bool CubesOverlap(object*, object*);
|
||||
bool SpheresOverlap(object*, object*);
|
||||
bool SphereCubeOverlap(object*, object*);
|
||||
|
||||
private:
|
||||
XMVECTOR m_gravity;
|
||||
|
Reference in New Issue
Block a user