/apps/demos/scenery: cleanup
This commit is contained in:
parent
4277852fc5
commit
8ec5a96333
@ -84,7 +84,6 @@ static void process_ground_mode(State *state) {
|
|||||||
|
|
||||||
float height = (height0 * weight0 + height1 * weight1 + height2 * weight2) / (weight0 + weight1 + weight2);
|
float height = (height0 * weight0 + height1 * weight1 + height2 * weight2) / (weight0 + weight1 + weight2);
|
||||||
|
|
||||||
|
|
||||||
if (target.y > height + PLAYER_HEIGHT)
|
if (target.y > height + PLAYER_HEIGHT)
|
||||||
target.y = target.y - 0.4f;
|
target.y = target.y - 0.4f;
|
||||||
|
|
||||||
@ -109,10 +108,7 @@ static void process_ground_mode(State *state) {
|
|||||||
if (input_action_pressed("player_backward"))
|
if (input_action_pressed("player_backward"))
|
||||||
direction = m_vec_sub(direction, m_vec_scale(dir_and_up.direction, speed));
|
direction = m_vec_sub(direction, m_vec_scale(dir_and_up.direction, speed));
|
||||||
|
|
||||||
while (vec3_length(direction) > 0) {
|
|
||||||
target = m_vec_add(target, direction);
|
target = m_vec_add(target, direction);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* interpolate */
|
/* interpolate */
|
||||||
|
Loading…
Reference in New Issue
Block a user