summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
afc5030)
this seems a little more natural
min/max pitch still look weird, but might make players angry if it's less than 90°
maybe head animation should use a fraction of read pitch
}
void Entity::OrientHead(float dt) noexcept {
}
void Entity::OrientHead(float dt) noexcept {
- // maximum yaw of head (90°)
- constexpr float max_head_yaw = PI_0p5;
+ // maximum yaw of head (60°)
+ constexpr float max_head_yaw = PI / 3.0f;
// use local Y as up
const glm::vec3 up(model_transform[1]);
// if yaw is bigger than max, rotate the body to accomodate
// use local Y as up
const glm::vec3 up(model_transform[1]);
// if yaw is bigger than max, rotate the body to accomodate