From 5ad032f3502aa2590244f3610e29d045c713f588 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 15 Aug 2012 23:30:41 +0100 Subject: [PATCH] Updated IGameMovement and ICollideable for today's engine update. --- game/shared/igamemovement.h | 6 +++--- public/engine/ICollideable.h | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/game/shared/igamemovement.h b/game/shared/igamemovement.h index f7de6077..5c5946a6 100644 --- a/game/shared/igamemovement.h +++ b/game/shared/igamemovement.h @@ -119,9 +119,9 @@ public: virtual void DiffPrint( char const *fmt, ... ) = 0; // Allows other parts of the engine to find out the normal and ducked player bbox sizes - virtual Vector const& GetPlayerMins( bool ducked ) const = 0; - virtual Vector const& GetPlayerMaxs( bool ducked ) const = 0; - virtual Vector const& GetPlayerViewOffset( bool ducked ) const = 0; + virtual Vector GetPlayerMins( bool ducked ) const = 0; + virtual Vector GetPlayerMaxs( bool ducked ) const = 0; + virtual Vector GetPlayerViewOffset( bool ducked ) const = 0; }; diff --git a/public/engine/ICollideable.h b/public/engine/ICollideable.h index c40c972b..3dce3b84 100644 --- a/public/engine/ICollideable.h +++ b/public/engine/ICollideable.h @@ -32,8 +32,10 @@ public: // These methods return the bounds of an OBB measured in "collision" space // which can be retreived through the CollisionToWorldTransform or // GetCollisionOrigin/GetCollisionAngles methods - virtual const Vector& OBBMins( ) const = 0; - virtual const Vector& OBBMaxs( ) const = 0; + virtual const Vector& OBBMinsPreScaled() const = 0; + virtual const Vector& OBBMaxsPreScaled() const = 0; + virtual const Vector& OBBMins() const = 0; + virtual const Vector& OBBMaxs() const = 0; // Returns the bounds of a world-space box used when the collideable is being traced // against as a trigger. It's only valid to call these methods if the solid flags