Tramway SDK
Classes | Namespaces | Enumerations | Functions
physics.h File Reference
#include <framework/core.h>
#include <framework/math.h>
#include <vector>

Go to the source code of this file.

Classes

struct  tram::Physics::Collision
 
struct  tram::Physics::collisionshape_t
 
struct  tram::Physics::trigger_t
 
struct  tram::Physics::rigidbody_t
 

Namespaces

namespace  tram
 
namespace  tram::Physics
 
namespace  tram::Physics::API
 

Enumerations

enum  tram::Physics::CollisionGroup : uint32_t {
  tram::Physics::COLL_WORLDOBJ = 2 , tram::Physics::COLL_STATICOBJ = 4 , tram::Physics::COLL_DYNAMICOBJ = 8 , tram::Physics::COLL_TRIGGER = 16 ,
  tram::Physics::COLL_PLAYER = 32 , tram::Physics::COLL_MONSTER = 64 , tram::Physics::COLL_VEHICLE = 128
}
 

Functions

void tram::Physics::Init ()
 Initializes the physics system. More...
 
void tram::Physics::Update ()
 Updates the physics system. More...
 
Collision tram::Physics::Raycast (const vec3 &from, const vec3 &to, uint32_t collision_mask)
 Performs a raycast. More...
 
std::vector< Collision > tram::Physics::Shapecast (const CollisionShape &shape, const vec3 &from, const vec3 &to, uint32_t collision_mask)
 I have no idea if this function works. (yes it does) More...