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