public override void Initialize(ContentManager contentLoader, ComponentManifest manifest)
        {
            base.Initialize(contentLoader, manifest);

            LevitationHandlingDesc levitationDesc = new LevitationHandlingDesc();
            levitationDesc.DampingForce = GameOptions.MovementForceDamping;
            levitationDesc.DampingRotationForce = GameOptions.MovementRotationForceDamping;
            levitationDesc.MaxRotationVelocity = GameOptions.MovementRotationVelocity;
            levitationDesc.MaxVelocity = GameOptions.MovementVelocity;

            mController = new LevitationMovementController(levitationDesc);
            GameResources.ActorManager.PreAnimationUpdateStep += PreAnimationUpdateHandler;
        }
Пример #2
0
        public override void Initialize(ContentManager contentLoader, ComponentManifest manifest)
        {
            base.Initialize(contentLoader, manifest);

            LevitationHandlingDesc levitationDesc = new LevitationHandlingDesc();

            levitationDesc.DampingForce         = GameOptions.MovementForceDamping;
            levitationDesc.DampingRotationForce = GameOptions.MovementRotationForceDamping;
            levitationDesc.MaxRotationVelocity  = GameOptions.MovementRotationVelocity;
            levitationDesc.MaxVelocity          = GameOptions.MovementVelocity;

            mController = new LevitationMovementController(levitationDesc);
            GameResources.ActorManager.PreAnimationUpdateStep += PreAnimationUpdateHandler;
        }