Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
collider.hpp File Reference

Initiates a collision. More...

Go to the source code of this file.

Classes

class  wze::collider
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

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.

Author
Zana Domán
Parameters
static_resolverMethod to solve a static collision.
dynamic_resolverMethod to solve a dynamic collision.
forceForce of the collision.
Author
Zana Domán
Returns
Possible contacts of the collision.
Author
Zana Domán
Parameters
contactsPossible contacts of the collision.
Returns
Mass of the possible contacts of the collision.
Author
Zana Domán
Parameters
positionGets the position of the body of a collider on one axis.
set_positionSets the position of the body of a collider on one axis.
otherOther collider instance.
Author
Zana Domán
Parameters
positionGets the position of the body of a collider on one axis.
set_positionSets the position of the body of a collider on one axis.
otherOther collider instance.
forceForce of the collision.
Returns
Whether the collision is resolved or not.
Author
Zana Domán
Parameters
otherOther collider instance.
Author
Zana Domán
Parameters
otherOther collider instance.
forceForce of the collision.
Returns
Whether the collision is resolved or not.
Author
Zana Domán
Parameters
collisionDepth of the collision.
forceForce of the initiator.
massMass of the contact.
Returns
Movements of the dynamic collision.
Author
Zana Domán
Zana Domán
Returns
Body of the collider.
Author
Zana Domán
Parameters
bodyBody of the collider.
Author
Zana Domán
Returns
Force of the collider.
Author
Zana Domán
Parameters
forceForce of the collider.
Author
Zana Domán
Returns
Mass of the collider.
Author
Zana Domán
Parameters
massMass of the collider.
Author
Zana Domán
Returns
World of the collider.
Note
World std::numeric_limits<uint8_t>::max() is always empty.
Author
Zana Domán
Parameters
worldWorld of the collider.
Note
World std::numeric_limits<uint8_t>::max() is always empty.
Author
Zana Domán
Returns
X position of the collider.
Author
Zana Domán
Parameters
xX position of the collider.
Author
Zana Domán
Returns
Y position of the collider.
Author
Zana Domán
Parameters
yY position of the collider.
Author
Zana Domán
Returns
Angle of the collider.
Author
Zana Domán
Parameters
angleAngle of the collider.
Author
Zana Domán
Returns
Scale of the collider.
Author
Zana Domán
Parameters
scaleScale of the collider.
Author
Zana Domán
Returns
X offset of the collider.
Author
Zana Domán
Parameters
x_offsetX offset of the collider.
Author
Zana Domán
Returns
Y offset of the collider.
Author
Zana Domán
Parameters
y_offsetY offset of the collider.
Author
Zana Domán
Returns
Angle offset of the collider.
Author
Zana Domán
Parameters
angle_offsetAngle offset of the collider.
Author
Zana Domán
Returns
Whether the x position is attached to entities.
Author
Zana Domán
Parameters
attach_xWhether the x position is attached to entities.
Author
Zana Domán
Returns
Whether the y position is attached to entities.
Author
Zana Domán
Parameters
attach_yWhether the y position is attached to entities.
Author
Zana Domán
Returns
Whether the angle is attached to entities.
Author
Zana Domán
Parameters
attach_angleWhether the angle is attached to entities.
Author
Zana Domán
Returns
Whether the x position is affected by angle.
Author
Zana Domán
Parameters
x_angle_lockWhether the x position is affected by the angle.
Author
Zana Domán
Returns
Whether the y position is affected by the angle.
Author
Zana Domán
Parameters
y_angle_lockWhether the y position is affected by the angle.
Author
Zana Domán
Parameters
bodyBody of the collider.
forceForce of the collider.
massMass of the collider.
worldWorld of the collider.
componentsComponents of the collider.
Note
World std::numeric_limits<uint8_t>::max() is always empty.
Author
Zana Domán
Parameters
otherOther collider instance.
Returns
Self reference.

Definition in file collider.hpp.