mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-16 13:08:31 +00:00
Use better API terminology for radii
- SetProximityRadius just calls AddProximityRadius so its clear what is going on. - created struct BoxDimensions for clear reading of what the floats are
This commit is contained in:
@@ -4,9 +4,16 @@
|
||||
#include "NiPoint3.h"
|
||||
#include "NiQuaternion.h"
|
||||
|
||||
struct BoxDimensions {
|
||||
BoxDimensions(float width, float height, float depth) : width(width), height(height), depth(depth) { }
|
||||
float width;
|
||||
float height;
|
||||
float depth;
|
||||
};
|
||||
|
||||
class dpShapeBox : public dpShapeBase {
|
||||
public:
|
||||
dpShapeBox(dpEntity* parentEntity, float width, float height, float depth);
|
||||
dpShapeBox(dpEntity* parentEntity, const BoxDimensions& dimensions);
|
||||
~dpShapeBox();
|
||||
|
||||
bool IsColliding(dpShapeBase* other);
|
||||
|
||||
Reference in New Issue
Block a user