Stowy Physics Engine 0.1.0
Loading...
Searching...
No Matches
stw Namespace Reference

Namespaces

namespace  algo
 Namespace containing all the methods to get manifolds from collisions. This is here to separate the logic from the Collider class. Avoids the problem where we don't know if the circle-box collision resolution should be in the CircleCollider class or the box ColliderClass.
 

Classes

class  AabbCollider
 An Axis Aligned Bounding Box collider. More...
 
class  BoxCollider
 A rotatable box collider. More...
 
class  BroadPhaseGrid
 A grid in which the physical object are placed in. This is used to optimize performance by only checking collision with colliders that are in the same cell. More...
 
class  CircleCollider
 A circle collider. More...
 
class  Collider
 A pure virtual struct that represents colliders. More...
 
struct  Collision
 Struct representing a collision. More...
 
class  CollisionBody
 A body that can receive collisions. More...
 
class  CollisionWorld
 Represents a world where collisions can happen. It does not have dynamics, for this you will need the DynamicsWorld. More...
 
class  DynamicsWorld
 A world with dynamics in it. More...
 
struct  Edge
 
class  ImpulseSolver
 Solver with impulse and friction. More...
 
struct  Manifold
 
struct  Projection
 
struct  Rigidbody
 A Rigidbody that has dynamics. More...
 
struct  Simplex
 Struct representing the simplest form that can "select" an area in any dimension. More...
 
class  SmoothPositionSolver
 A solver to smooth out collision with collider that are in a tower placement. More...
 
class  Solver
 Generic class for all solvers. More...
 
struct  Transform
 A transform of an object. Contains position, scale and rotation. More...
 
struct  Vector2
 A struct representing a 2D Vector. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Manifold &manifold)
 
std::ostream & operator<< (std::ostream &os, const Vector2 &vec)
 
Vector2 operator+ (Vector2 vec, const float scalar)
 
Vector2 operator- (Vector2 vec, const float scalar)
 
Vector2 operator* (Vector2 vec, const float scalar)
 
Vector2 operator* (const float scalar, const Vector2 vec)
 
Vector2 operator/ (Vector2 vec, const float scalar)
 

Function Documentation

◆ operator*() [1/2]

Vector2 stw::operator* ( const float scalar,
const Vector2 vec )

◆ operator*() [2/2]

Vector2 stw::operator* ( Vector2 vec,
const float scalar )

◆ operator+()

Vector2 stw::operator+ ( Vector2 vec,
const float scalar )

◆ operator-()

Vector2 stw::operator- ( Vector2 vec,
const float scalar )

◆ operator/()

Vector2 stw::operator/ ( Vector2 vec,
const float scalar )

◆ operator<<() [1/2]

std::ostream & stw::operator<< ( std::ostream & os,
const Manifold & manifold )

◆ operator<<() [2/2]

std::ostream & stw::operator<< ( std::ostream & os,
const Vector2 & vec )