Changeset 3341

Show
Ignore:
Timestamp:
01/31/10 14:35:37 (7 weeks ago)
Author:
Azaezel
Message:

adds min/max parameters to I_PhysicsZone::I_PhysicsZone and I_PhysicsService::createZone

Location:
Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics/I_PhysicsService.hpp

    r3107 r3341  
    3232 
    3333#include <Zen/Core/Math/Math.hpp> 
    34  
     34#include <Zen/Core/Math/Vector3.hpp> 
    3535#include <Zen/Core/Memory/managed_ptr.hpp> 
    3636#include <Zen/Core/Memory/managed_weak_ptr.hpp> 
     
    7171    ///     this is the case, the plugin should throw an exception 
    7272    ///     if an application attemts to create more than one zone. 
    73         virtual pPhysicsZone_type createZone() = 0; 
     73        virtual pPhysicsZone_type createZone(const Math::Vector3& _min, const Math::Vector3& _max) = 0; 
    7474 
    7575    /// Step the physics simulations by the specified amount of time. 
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics/I_PhysicsZone.hpp

    r3107 r3341  
    108108        virtual void stepSimulation(double _elapsedTime) = 0; 
    109109 
    110     virtual void setZoneSize(const Math::Vector3& _min, const Math::Vector3& _max) = 0; 
    111  
    112110    /// Set the default gravity. 
    113111    /// @todo TR - Does this actually work?  If not then possibly should remove it. 
     
    184182    /// @{ 
    185183protected: 
    186              I_PhysicsZone(); 
     184             I_PhysicsZone(const Math::Vector3& _min, const Math::Vector3& _max); 
    187185    virtual ~I_PhysicsZone(); 
    188186    /// @} 
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Physics/src/I_PhysicsZone.cpp

    r2969 r3341  
    3131//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
    3232 
    33 I_PhysicsZone::I_PhysicsZone() 
     33I_PhysicsZone::I_PhysicsZone(const Math::Vector3& _min, const Math::Vector3& _max) 
    3434{ 
    3535}