#include "Poseable2D.h" namespace charcoal { Poseable2D::Poseable2D(const vec2& position) : Poseable(vec3(position, 0.0f)) {} void Poseable2D::update_position(const vec2& position) { Poseable::update_position(vec3(position, 0.0f)); } void Poseable2D::update_rotation(float angle) { Poseable::reset_orientation(); rotate(angle); } void Poseable2D::translate(const vec2& translation) { Poseable::translate(vec3(translation, 0.0f)); } void Poseable2D::rotate(float angle) { Poseable::rotate(vec3(0.0f, 0.0f, 1.0f), angle); } }