DubiousEngine  0.2.0
Simple Game Engine
Dubious::Physics::Physics_model Class Reference

A model represented to the Physics system. More...

#include <Physics_model.h>

Public Member Functions

 Physics_model (const Physics_model &)=delete
 
 Physics_model (const Utility::Ac3d_file &File)
 Construct from AC3D Model. More...
 
Physics_modeloperator= (const Physics_model &)=delete
 
float radius () const
 
const std::vector< Math::Local_vector > & vectors () const
 
const std::vector< std::unique_ptr< Physics_model > > & kids () const
 

Detailed Description

A model represented to the Physics system.

The model is a shared object that contains the data necessary to represent the object to the Physics system. These are built to make collision detection faster and simpler. As such they flatten everything out to Local_vectors

Constructor & Destructor Documentation

Dubious::Physics::Physics_model::Physics_model ( const Physics_model )
delete
Dubious::Physics::Physics_model::Physics_model ( const Utility::Ac3d_file File)

Construct from AC3D Model.

Constructs a model from an AC3D File.

Parameters
File- [in] The file object

Member Function Documentation

const std::vector<std::unique_ptr<Physics_model> >& Dubious::Physics::Physics_model::kids ( ) const
inline
Physics_model& Dubious::Physics::Physics_model::operator= ( const Physics_model )
delete
float Dubious::Physics::Physics_model::radius ( ) const
inline
const std::vector<Math::Local_vector>& Dubious::Physics::Physics_model::vectors ( ) const
inline

The documentation for this class was generated from the following files: