19 friend class ::PhysicsManager;
20 friend class ::Component::RigidBody;
80 explicit Shape(
const Sphere& params);
86 explicit Shape(
const Plane& params);
92 explicit Shape(
const Box& params);
98 explicit Shape(
const Cylinder& params);
104 explicit Shape(
const Cone& params);
110 explicit Shape(
const Capsule& params);
162 btCollisionShape* GetShape()
const;
166 std::unique_ptr<btCollisionShape> shape;
const Box * GetBoxData() const
Get box data of the shape.
Definition: Shape.cpp:64
Box box
Definition: Shape.hpp:171
~Shape()
Destructor.
Definition: Shape.cpp:50
Plane plane
Definition: Shape.hpp:170
const Sphere * GetSphereData() const
Get sphere data of the shape.
Definition: Shape.cpp:56
Cylinder cylinder
Definition: Shape.hpp:172
Kind GetKind() const
Get the type of wrapped shape.
Definition: Shape.cpp:52
Capsule capsule
Definition: Shape.hpp:174
Cone cone
Definition: Shape.hpp:173
const Plane * GetPlaneData() const
Get plane data of the shape.
Definition: Shape.cpp:60
Shape(const Sphere ¶ms)
Construct a sphere shape.
Definition: Shape.cpp:6
const Cone * GetConeData() const
Get cone data of the shape.
Definition: Shape.cpp:72
const Capsule * GetCapsuleData() const
Get capsule data of the shape.
Definition: Shape.cpp:76
Kind
The various kinds of shapes that are wrapped by Shape.
Definition: Shape.hpp:67
const Cylinder * GetCylinderData() const
Get cylinder data of the shape.
Definition: Shape.cpp:68
Sphere sphere
Definition: Shape.hpp:169
Definition: Trigger.hpp:15
Updates the physics of the world.
Definition: PhysicsManager.hpp:28
Definition: BoxShapeEditor.hpp:5
Definition: IShapeEditor.hpp:7
Parameters used to create a box shape.
Definition: Shape.hpp:38
float height
Definition: Shape.hpp:41
float depth
Definition: Shape.hpp:42
float width
Definition: Shape.hpp:40
Box(float width, float height, float depth)
Definition: Shape.hpp:39
Parameters used to create a capsule shape.
Definition: Shape.hpp:60
float height
Definition: Shape.hpp:63
float radius
Definition: Shape.hpp:62
Capsule(float radius, float height)
Definition: Shape.hpp:61
Parameters used to create a cone shape.
Definition: Shape.hpp:53
float height
Definition: Shape.hpp:56
float radius
Definition: Shape.hpp:55
Cone(float radius, float height)
Definition: Shape.hpp:54
Parameters used to create a cylinder shape.
Definition: Shape.hpp:46
float length
Definition: Shape.hpp:49
Cylinder(float radius, float length)
Definition: Shape.hpp:47
float radius
Definition: Shape.hpp:48
Parameters used to create a plane shape.
Definition: Shape.hpp:31
Plane(const glm::vec3 &normal, float planeCoeff)
Definition: Shape.hpp:32
float planeCoeff
Definition: Shape.hpp:34
glm::vec3 normal
Definition: Shape.hpp:33
Parameters used to create a sphere shape.
Definition: Shape.hpp:25
float radius
Definition: Shape.hpp:27
Sphere(float radius)
Definition: Shape.hpp:26