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:
@@ -9,11 +9,11 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
dpShapeBox::dpShapeBox(dpEntity* parentEntity, float width, float height, float depth) :
|
||||
dpShapeBox::dpShapeBox(dpEntity* parentEntity, const BoxDimensions& dimensions) :
|
||||
dpShapeBase(parentEntity),
|
||||
m_Width(width / 2),
|
||||
m_Height(height / 2),
|
||||
m_Depth(depth / 2),
|
||||
m_Width(dimensions.width / 2),
|
||||
m_Height(dimensions.height / 2),
|
||||
m_Depth(dimensions.depth / 2),
|
||||
m_Scale(1.0f) {
|
||||
m_ShapeType = dpShapeType::Box;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user