46 static constexpr auto name =
"Velocity";
74 static constexpr auto name =
"AngularVelocity";
Game::EditorState.
Definition orientation.h:7
static constexpr size_t num_fields
Definition velocity.h:76
static constexpr auto name
Definition velocity.h:74
static constexpr size_t field_byte_offsets[num_fields]
Definition velocity.h:88
static constexpr const char * field_names[num_fields]
Definition velocity.h:77
static constexpr const char * field_typenames[num_fields]
Definition velocity.h:82
std::tuple< float, float, float > field_types
Definition velocity.h:87
static constexpr auto fully_qualified_name
Definition velocity.h:75
AngularVelocity(Math::vec3 const &v)
Definition velocity.h:31
static constexpr size_t num_fields
Definition velocity.h:48
static constexpr size_t field_byte_offsets[num_fields]
Definition velocity.h:60
static constexpr const char * field_names[num_fields]
Definition velocity.h:49
static constexpr auto fully_qualified_name
Definition velocity.h:47
static constexpr const char * field_typenames[num_fields]
Definition velocity.h:54
std::tuple< float, float, float > field_types
Definition velocity.h:59
static constexpr auto name
Definition velocity.h:46
A component that stores the linear velocity of an entity.
Velocity(Math::vec3 const &v)
Definition velocity.h:20
A 3D vector.
Definition vec3.h:40
float v[3]
Definition vec3.h:97
vec3()=default
default constructor, NOTE: does NOT setup components!
void load(const scalar *ptr)
load content from 16-byte-aligned memory
Definition vec3.h:162
float x
Definition vec3.h:94
float z
Definition vec3.h:94
float y
Definition vec3.h:94