mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-13 15:34:37 +00:00
# Animation bug fixes.
- Projectile speed and gravity adjusted to get nicer curves. - Dying units conform to terrain. - Cavalry melee attack range increased. This was SVN commit r4887.
This commit is contained in:
@@ -269,7 +269,16 @@ void CEntity::kill(bool keepActor)
|
||||
m_position_previous = m_position;
|
||||
m_graphics_orientation = m_orientation;
|
||||
m_orientation_previous = m_orientation;
|
||||
|
||||
snapToGround();
|
||||
|
||||
// Conform to the ground
|
||||
CVector2D targetXZ = g_Game->GetWorld()->GetTerrain()->getSlopeAngleFace(this);
|
||||
m_orientation.X = clamp( targetXZ.x, -1.0f, 1.0f );
|
||||
m_orientation.Z = clamp( targetXZ.y, -1.0f, 1.0f );
|
||||
m_orientation_unclamped.x = targetXZ.x;
|
||||
m_orientation_unclamped.y = targetXZ.y;
|
||||
|
||||
updateActorTransforms();
|
||||
m_actor_transform_valid = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user