SwimIdle tech parent state
This commit is contained in:
parent
32e6eab069
commit
98949574a8
@ -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());
|
||||
|
@ -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() {
|
||||
|
@ -28,7 +28,8 @@ public:
|
||||
Duck,
|
||||
Walk,
|
||||
Run,
|
||||
Swim
|
||||
Swim,
|
||||
SwimIdle
|
||||
};
|
||||
static EnumMap<ParentState> const ParentStateNames;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user