mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
Clear impact velocity on WalkingStrategy Reset.
Fixes landing behaviours incorrectly firing after a brain transition.
This commit is contained in:
@ -537,6 +537,8 @@ void plWalkingStrategy::AddContactNormals(hsVector3& vec)
|
|||||||
void plWalkingStrategy::Reset(bool newAge)
|
void plWalkingStrategy::Reset(bool newAge)
|
||||||
{
|
{
|
||||||
plMovementStrategy::Reset(newAge);
|
plMovementStrategy::Reset(newAge);
|
||||||
|
fImpactVelocity.Set(0.0f, 0.0f, 0.0f);
|
||||||
|
fImpactTime = 0.0f;
|
||||||
if (newAge)
|
if (newAge)
|
||||||
{
|
{
|
||||||
fTimeInAir = 0.0f;
|
fTimeInAir = 0.0f;
|
||||||
|
Reference in New Issue
Block a user