20 #ifndef ANTKEEPER_GAME_COMMANDS_HPP
21 #define ANTKEEPER_GAME_COMMANDS_HPP
Commands which operate on entity::id components.
void translate(entity::registry ®istry, entity::id eid, const math::fvec3 &translation)
math::transform< float > get_world_transform(entity::registry ®istry, entity::id eid)
void set_transform(entity::registry ®istry, entity::id eid, const math::transform< float > &transform)
void warp_to(entity::registry ®istry, entity::id eid, const math::fvec3 &position)
void place(entity::registry ®istry, entity::id eid, entity::id celestial_body_id, double altitude, double latitude, double longitude)
void move_to(entity::registry ®istry, entity::id eid, const math::fvec3 &position)
void assign_render_layers(entity::registry ®istry, entity::id eid, std::uint8_t layer_mask)
void set_scale(entity::registry ®istry, entity::id eid, const math::fvec3 &scale)
math::transform< float > get_local_transform(entity::registry ®istry, entity::id eid)
void rotate(entity::registry ®istry, entity::id eid, float angle, const math::fvec3 &axis)
entt::registry registry
Component registry type.
entt::entity id
Entity ID type.
T angle(const vector< T, N > &from, const vector< T, N > &to)
Calculates the angle between two direction vectors.
constexpr mat4< T > scale(const vec3< T > &v)
Constructs a scale matrix.
@ position
Vertex position (vec3)