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:
David Markowitz
2023-06-16 19:53:22 -07:00
parent be17d1a467
commit 68a5cc1d89
10 changed files with 48 additions and 35 deletions

View File

@@ -32,14 +32,14 @@ public:
* @param proxRadius the radius to use for the physics entity we use to detect proximity
* @param name the name of this check
*/
void SetProximityRadius(float proxRadius, const std::string& name);
void AddProximityRadius(float proxRadius, const std::string& name);
/**
* Creates an entry to check proximity for, given a name
* @param entity the physics entity to add to our proximity sensors
* @param name the name of this check
*/
void SetProximityRadius(dpEntity* entity, const std::string& name);
void AddProximityRadius(const BoxDimensions& entity, const std::string& name);
/**
* Returns the last of entities that are used to check proximity, given a name