mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 18:54:13 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
17
dPhysics/dpShapeSphere.h
Normal file
17
dPhysics/dpShapeSphere.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include "dpShapeBase.h"
|
||||
|
||||
class dpShapeSphere : public dpShapeBase {
|
||||
public:
|
||||
dpShapeSphere(dpEntity* parentEntity, float radius);
|
||||
~dpShapeSphere();
|
||||
|
||||
bool IsColliding(dpShapeBase* other);
|
||||
|
||||
const float GetRadius() const { return m_Radius; }
|
||||
|
||||
void SetScale(float scale) { m_Radius = scale; }
|
||||
|
||||
private:
|
||||
float m_Radius;
|
||||
};
|
Reference in New Issue
Block a user