コード例 #1
0
        public override void OnUpdate()
        {
            CharacterStats cs = (CharacterStats)controller.EntityStats;

            PhysicsManager.ApplyMovement(cs.ledgeJumpAccel, cs.ledgeJumpMaxSpeed, cs.airDeceleration, false);
            PhysicsManager.HandleGravity();

            CheckInterrupt();
        }
コード例 #2
0
        public override void OnUpdate()
        {
            EntityStats es = controller.EntityStats;

            PhysicsManager.ApplyMovement(es.airAcceleration, es.maxAirSpeed, es.airDeceleration);
            PhysicsManager.HandleGravity(es.gravity);
            controller.RotateVisual(controller.GetMovementVector(0), es.airRotationSpeed);
            CheckInterrupt();
        }