void TakingOff_Update() { if (!BotFlyingComponent.IsFarFromGround()) // IsCloseToGround()) { BotFlyingComponent.Flying3DObjectComponent.ApplyVerticalThrust(true); } else { RigidBodyComponent.Sleep(); m_FSM.ChangeState(FlyableStates.Flying); } }
void TakingOff_Update() { if (BotFSMLocomotionComponent.IsCloseToGround()) // .IsFarFromGround()) // { Flying3DObjectComponent.ApplyVerticalThrust(true); } else { RigidBodyComponent.Sleep(); FSMFlyable.ChangeState(FStatesFlyable.Flying); } }