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

#include <colliders.h>

Inheritance diagram for nngn::SphereCollider:
Collaboration diagram for nngn::SphereCollider:

Public Member Functions

 SphereCollider ()=default
 
 SphereCollider (vec3 p_pos, float p_r)
 
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< SphereCollider > s)
 

Public Attributes

float r = 0
 
- 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

◆ SphereCollider() [1/2]

nngn::SphereCollider::SphereCollider ( )
default

◆ SphereCollider() [2/2]

nngn::SphereCollider::SphereCollider ( vec3 p_pos,
float p_r )
inline

Member Function Documentation

◆ load()

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

◆ update()

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

Member Data Documentation

◆ r

float nngn::SphereCollider::r = 0

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