add case
This commit is contained in:
@@ -68,7 +68,7 @@ void sceneMapEntityGetPosition(const entity_t *entity, vec3 outPosition) {
|
|||||||
|
|
||||||
// Add animation offset(s)
|
// Add animation offset(s)
|
||||||
switch(entity->animation) {
|
switch(entity->animation) {
|
||||||
case ENTITY_ANIM_WALK:
|
case ENTITY_ANIM_WALK: {
|
||||||
float_t animPercentage = entity->animTime / ENTITY_ANIM_WALK_DURATION;
|
float_t animPercentage = entity->animTime / ENTITY_ANIM_WALK_DURATION;
|
||||||
|
|
||||||
vec3 lastPosition;
|
vec3 lastPosition;
|
||||||
@@ -79,6 +79,7 @@ void sceneMapEntityGetPosition(const entity_t *entity, vec3 outPosition) {
|
|||||||
glm_vec3_scale(offset, -animPercentage, offset);
|
glm_vec3_scale(offset, -animPercentage, offset);
|
||||||
glm_vec3_add(outPosition, offset, outPosition);
|
glm_vec3_add(outPosition, offset, outPosition);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user