Files
NazaraEngine/include/Nazara/Physics/PhysWorld.hpp
Lynix fb839de33e Renamed (Oriented)Cube to (Oriented)Box
Also renamed BoundingBox to BoundingVolume


Former-commit-id: 795c70c265ba17f6b96fc30799e89f140c52852b
2013-06-03 14:18:31 +02:00

40 lines
924 B
C++

// Copyright (C) 2013 Jérôme Leclercq
// This file is part of the "Nazara Engine - Physics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_PHYSWORLD_HPP
#define NAZARA_PHYSWORLD_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/Core/NonCopyable.hpp>
#include <Nazara/Math/Box.hpp>
#include <Nazara/Math/Vector3.hpp>
struct NewtonWorld;
class NAZARA_API NzPhysWorld : NzNonCopyable
{
public:
NzPhysWorld();
~NzPhysWorld();
NzVector3f GetGravity() const;
NewtonWorld* GetHandle() const;
unsigned int GetMemoryUsed() const;
void SetGravity(const NzVector3f& gravity);
void SetSize(const NzBoxf& box);
void SetSize(const NzVector3f& min, const NzVector3f& max);
void SetSolverModel(unsigned int model);
void Update(float timestep);
private:
NzVector3f m_gravity;
NewtonWorld* m_world;
};
#endif // NAZARA_PHYSWORLD_HPP