physics
Public Member Functions | Public Attributes | List of all members
Face Struct Reference

Face structure for organising CollisionBody collision data. More...

#include "body.hpp"

Public Member Functions

 Face (const vector< uint > &verts_indices)
 Face constructor, takes a vector of vertex indexes into the CollisionBody. More...
 
int setData (const vector< vec3 > &verts)
 Set Face vertex data. More...
 
 Face (const Face &f)
 Face copy constructor. More...
 
 ~Face ()
 

Public Attributes

vector< vec3 > verts_ws = {}
 
vector< uint > verts_indices = {}
 
vec3 position_ws
 
vec3 normal_ws
 
int id = -1
 

Detailed Description

Face structure for organising CollisionBody collision data.

Constructor & Destructor Documentation

◆ Face() [1/2]

Face::Face ( const vector< uint > &  verts_indices)

Face constructor, takes a vector of vertex indexes into the CollisionBody.

◆ Face() [2/2]

Face::Face ( const Face f)

Face copy constructor.

◆ ~Face()

Face::~Face ( )

Member Function Documentation

◆ setData()

int Face::setData ( const vector< vec3 > &  verts)

Set Face vertex data.

Member Data Documentation

◆ id

int Face::id = -1

◆ normal_ws

vec3 Face::normal_ws

◆ position_ws

vec3 Face::position_ws

◆ verts_indices

vector<uint> Face::verts_indices = {}

◆ verts_ws

vector<vec3> Face::verts_ws = {}

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