|
Hymn to Beauty
C++ 3D Engine
|
#include <Shape.hpp>
Classes | |
| struct | Box |
| Parameters used to create a box shape. More... | |
| struct | Capsule |
| Parameters used to create a capsule shape. More... | |
| struct | Cone |
| Parameters used to create a cone shape. More... | |
| struct | Cylinder |
| Parameters used to create a cylinder shape. More... | |
| struct | Plane |
| Parameters used to create a plane shape. More... | |
| struct | Sphere |
| Parameters used to create a sphere shape. More... | |
Public Types | |
| enum class | Kind { Sphere , Plane , Box , Cylinder , Cone , Capsule } |
| The various kinds of shapes that are wrapped by Shape. More... | |
Public Member Functions | |
| Shape (const Sphere ¶ms) | |
| Construct a sphere shape. More... | |
| Shape (const Plane ¶ms) | |
| Construct a plane shape. More... | |
| Shape (const Box ¶ms) | |
| Construct a box shape. More... | |
| Shape (const Cylinder ¶ms) | |
| Construct a cylinder shape. More... | |
| Shape (const Cone ¶ms) | |
| Construct a cone shape. More... | |
| Shape (const Capsule ¶ms) | |
| Construct a capsule shape. More... | |
| ~Shape () | |
| Destructor. More... | |
| Kind | GetKind () const |
| Get the type of wrapped shape. More... | |
| const Sphere * | GetSphereData () const |
| Get sphere data of the shape. More... | |
| const Plane * | GetPlaneData () const |
| Get plane data of the shape. More... | |
| const Box * | GetBoxData () const |
| Get box data of the shape. More... | |
| const Cylinder * | GetCylinderData () const |
| Get cylinder data of the shape. More... | |
| const Cone * | GetConeData () const |
| Get cone data of the shape. More... | |
| const Capsule * | GetCapsuleData () const |
| Get capsule data of the shape. More... | |
Friends | |
| class | ::PhysicsManager |
| class | ::Component::RigidBody |
| class | Trigger |
Represents a shape for physics objects and facilitates creation of underlying types.
|
strong |
|
explicit |
Construct a sphere shape.
| params | Sphere specific parameters. |
|
explicit |
Construct a plane shape.
| params | Plane specific parameters. |
|
explicit |
Construct a box shape.
| params | Box specific parameters. |
|
explicit |
Construct a cylinder shape.
| params | Cylinder specific parameters. |
|
explicit |
Construct a cone shape.
| params | Cone specific parameters. |
|
explicit |
Construct a capsule shape.
| params | Capsule specific parameters. |
| Physics::Shape::~Shape | ( | ) |
Destructor.
| const Shape::Box * Physics::Shape::GetBoxData | ( | ) | const |
Get box data of the shape.
| const Shape::Capsule * Physics::Shape::GetCapsuleData | ( | ) | const |
Get capsule data of the shape.
| const Shape::Cone * Physics::Shape::GetConeData | ( | ) | const |
Get cone data of the shape.
| const Shape::Cylinder * Physics::Shape::GetCylinderData | ( | ) | const |
Get cylinder data of the shape.
| Shape::Kind Physics::Shape::GetKind | ( | ) | const |
Get the type of wrapped shape.
| const Shape::Plane * Physics::Shape::GetPlaneData | ( | ) | const |
Get plane data of the shape.
| const Shape::Sphere * Physics::Shape::GetSphereData | ( | ) | const |
Get sphere data of the shape.
|
friend |
|
friend |
|
friend |
| Box Physics::Shape::box |
| Capsule Physics::Shape::capsule |
| Cone Physics::Shape::cone |
| Cylinder Physics::Shape::cylinder |
| Plane Physics::Shape::plane |
| Sphere Physics::Shape::sphere |