SwimIdle tech parent state

This commit is contained in:
Kae 2023-08-02 22:02:21 +10:00
parent 32e6eab069
commit 98949574a8
3 changed files with 6 additions and 2 deletions

View File

@ -1773,6 +1773,8 @@ void Player::processStateChanges(float dt) {
m_humanoid->setState(Humanoid::Run);
} else if (techState == TechController::ParentState::Swim) {
m_humanoid->setState(Humanoid::Swim);
} else if (techState == TechController::ParentState::SwimIdle) {
m_humanoid->setState(Humanoid::SwimIdle);
}
} else {
auto loungeAnchor = as<LoungeAnchor>(m_movementController->entityAnchor());

View File

@ -25,7 +25,8 @@ EnumMap<TechController::ParentState> const TechController::ParentStateNames{
{TechController::ParentState::Duck, "Duck"},
{TechController::ParentState::Walk, "Walk"},
{TechController::ParentState::Run, "Run"},
{TechController::ParentState::Swim, "Swim"}
{TechController::ParentState::Swim, "Swim"},
{TechController::ParentState::SwimIdle, "SwimIdle"}
};
TechController::TechController() {

View File

@ -28,7 +28,8 @@ public:
Duck,
Walk,
Run,
Swim
Swim,
SwimIdle
};
static EnumMap<ParentState> const ParentStateNames;