nngn
Loading...
Searching...
No Matches
nngn::BBCollider Struct Reference

#include <colliders.h>

Inheritance diagram for nngn::BBCollider:
Collaboration diagram for nngn::BBCollider:

Public Member Functions

 BBCollider ()=default
 
 BBCollider (vec2 p_bl, vec2 p_tr, float p_cos, float p_sin)
 
void load (nngn::lua::table_view t)
 
- Public Member Functions inherited from nngn::AABBCollider
 AABBCollider ()=default
 
 AABBCollider (vec2 p_bl, vec2 p_tr)
 
void load (nngn::lua::table_view t)
 
- Public Member Functions inherited from nngn::Collider
 Collider ()=default
 
 Collider (vec3 p)
 
 Collider (vec3 p, float p_m)
 
void load (nngn::lua::table_view t)
 

Static Public Member Functions

static void update (std::span< BBCollider > s)
 
- Static Public Member Functions inherited from nngn::AABBCollider
static void update (std::span< AABBCollider > s)
 

Public Attributes

float cos = {}
 
float sin = {}
 
- Public Attributes inherited from nngn::AABBCollider
vec2 rel_center = {}
 
vec2 rel_bl = {}
 
vec2 rel_tr = {}
 
vec2 center = {}
 
vec2 bl = {}
 
vec2 tr = {}
 
float radius = {}
 
- Public Attributes inherited from nngn::Collider
Entityentity = nullptr
 
vec3 pos = {}
 
vec3 vel = {}
 
float m = {}
 
Flags< Flagflags = {}
 

Additional Inherited Members

- Public Types inherited from nngn::Collider
enum  Type : u8 {
  NONE , AABB , BB , SPHERE ,
  PLANE , GRAVITY , N_TYPES
}
 
enum  Flag : u8 { COLLIDING = 1 << 0 , TRIGGER = 1 << 1 , SOLID = 1 << 2 }
 

Constructor & Destructor Documentation

◆ BBCollider() [1/2]

nngn::BBCollider::BBCollider ( )
default

◆ BBCollider() [2/2]

nngn::BBCollider::BBCollider ( vec2 p_bl,
vec2 p_tr,
float p_cos,
float p_sin )
inline

Member Function Documentation

◆ load()

void nngn::BBCollider::load ( nngn::lua::table_view t)
Here is the call graph for this function:

◆ update()

void nngn::BBCollider::update ( std::span< BBCollider > s)
static
Here is the caller graph for this function:

Member Data Documentation

◆ cos

float nngn::BBCollider::cos = {}

◆ sin

float nngn::BBCollider::sin = {}

The documentation for this struct was generated from the following files: