Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit e236645

Browse files
committed
Review changes
1 parent 726e87a commit e236645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
254254

255255
- Added `Entity` Lua function `entity:RemoveFromGroup(groupToRemoveFrom)` which removes the given group from the `Entity`. The reverse of `AddToGroup`.
256256

257-
- New `AHuman` Lua functions `GetWalkAngle(layer)` and `SetWalkAngle(layer)`, which can be used to read and override walk path rotation of both Legs/Layers respectively. The walk path rotation is automatically updated on each step to match the curvature of the terrain.
257+
- New `AHuman` Lua functions `GetWalkAngle(layer)` and `SetWalkAngle(layer, angle)`, which can be used to read and override walk path rotation of both Legs/Layers respectively. The walk path rotation is automatically updated on each step to match the curvature of the terrain.
258258

259259
</details>
260260

Entities/LimbPath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Vector LimbPath::GetCurrentVel(const Vector &limbPos)
300300
{
301301
Vector returnVel;
302302
Vector distVect = g_SceneMan.ShortestDistance(limbPos, GetCurrentSegTarget());
303-
float adjustedTravelSpeed = m_TravelSpeed[m_WhichSpeed] / std::max((std::abs(m_JointVel.GetY()) - std::abs(m_JointVel.GetX())) * 0.5F, 1.0F);
303+
float adjustedTravelSpeed = m_TravelSpeed[m_WhichSpeed] / (1.0F + std::abs(m_JointVel.GetY()) * 0.1F);
304304

305305
if (IsStaticPoint())
306306
{

0 commit comments

Comments
 (0)