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

@@ -279,7 +279,7 @@ void PhantomPhysicsComponent::CreatePhysics() {
switch (type) {
case 1: { //Make a new box shape
NiPoint3 boxSize(x, y, z);
BoxDimensions boxSize(x, y, z);
if (x == 0.0f) {
//LU has some weird values, so I think it's best to scale them down a bit
if (height < 0.5f) height = 2.0f;
@@ -289,7 +289,7 @@ void PhantomPhysicsComponent::CreatePhysics() {
width = width * m_Scale;
height = height * m_Scale;
boxSize = NiPoint3(width, height, width);
boxSize = BoxDimensions(width, height, width);
}
m_dpEntity = new dpEntity(m_ParentEntity->GetObjectID(), boxSize);