Initiates a collision. More...
#include <wizard_engine/entity.hpp>
#include <wizard_engine/export.hpp>
#include <wizard_engine/math.hpp>
#include <wizard_engine/polygon.hpp>
Go to the source code of this file.
Classes | |
class | wze::collider |
Namespaces | |
namespace | wze |
Wizard Engine. | |
Initiates a collision.
Copy assignment operator.
Destroy the collider intance and erases from it's world.
Copy constructor.
Constructs a collider instance and pushes into a world.
Sets whether the y position is affected by the angle.
Returns whether the y position is affected by the angle.
Sets whether the x position is affected by the angle.
Returns whether the x position is affected by the angle.
Sets whether the angle is attached to entities.
Returns whether the angle is attached to entities.
Sets whether the y position is attached to entities.
Returns whether the y position is attached to entities.
Sets whether the x position is attached to entities.
Returns whether the x position is attached to entities.
Sets the angle offset of the collider.
Returns the angle offset of the collider.
Sets the y offset of the collider.
Returns the y offset of the collider.
Sets the x offset of the collider.
Returns the x offset of the collider.
Sets the scale of the collider.
Returns the scale of the collider.
Sets the angle of the collider.
Returns the angle of the collider.
Sets the y position of the collider.
Returns the y position of the collider.
Sets the x position of the collider.
Returns the x position of the collider.
Sets the world of the collider.
Returns the world of the collider.
Sets the mass of the collider.
Returns the mass of the collider.
Sets the force of the collider.
Returns the force of the collider.
Sets the body of the collider.
Returns the body of the collider.
Aligns the entities of the colliders to their bodies.
Returns the movements of a dynamic collision.
Dynamically resolves a collision with another collider instance on both axis.
Statically resolves a collision with another collider instance on both axis.
Dynamically resolves a collision with another collider instance on one axis.
Statically resolves a collision with another collider instance on one axis.
Returns the mass of the possible contacts of a collision.
Returns the possible contacts of a collision.
static_resolver | Method to solve a static collision. |
dynamic_resolver | Method to solve a dynamic collision. |
force | Force of the collision. |
contacts | Possible contacts of the collision. |
position | Gets the position of the body of a collider on one axis. |
set_position | Sets the position of the body of a collider on one axis. |
other | Other collider instance. |
position | Gets the position of the body of a collider on one axis. |
set_position | Sets the position of the body of a collider on one axis. |
other | Other collider instance. |
force | Force of the collision. |
other | Other collider instance. |
other | Other collider instance. |
force | Force of the collision. |
collision | Depth of the collision. |
force | Force of the initiator. |
mass | Mass of the contact. |
body | Body of the collider. |
force | Force of the collider. |
mass | Mass of the collider. |
world | World of the collider. |
x | X position of the collider. |
y | Y position of the collider. |
angle | Angle of the collider. |
scale | Scale of the collider. |
x_offset | X offset of the collider. |
y_offset | Y offset of the collider. |
angle_offset | Angle offset of the collider. |
attach_x | Whether the x position is attached to entities. |
attach_y | Whether the y position is attached to entities. |
attach_angle | Whether the angle is attached to entities. |
x_angle_lock | Whether the x position is affected by the angle. |
y_angle_lock | Whether the y position is affected by the angle. |
body | Body of the collider. |
force | Force of the collider. |
mass | Mass of the collider. |
world | World of the collider. |
components | Components of the collider. |
other | Other collider instance. |
Definition in file collider.hpp.