Inheritance: IUpdatableComponent, IRenderableComponent, IEnabledComponent
        public FirstPersonControllerInputComponent(
            [FromParent, RequireExisting] FirstPersonCameraComponent firstPersonCameraComponent,
            [FromParent, RequireExisting] FirstPersonControllerPhysicsComponent firstPersonControllerPhysicsComponent)
        {
            _firstPersonCameraComponent = firstPersonCameraComponent;
            _firstPersonControllerPhysicsComponent = firstPersonControllerPhysicsComponent;

            ThumbstickLookSensitivity = 1/100f;
            ThumbstickMoveSensitivity = 5f;
            MovementSpeed = 1f;
            MouseLock = true;

            Enabled = true;
        }
Esempio n. 2
0
        public FirstPersonControllerInputComponent(
            [FromParent, RequireExisting] FirstPersonCameraComponent firstPersonCameraComponent,
            [FromParent, RequireExisting] FirstPersonControllerPhysicsComponent firstPersonControllerPhysicsComponent)
        {
            _firstPersonCameraComponent            = firstPersonCameraComponent;
            _firstPersonControllerPhysicsComponent = firstPersonControllerPhysicsComponent;

            ThumbstickLookSensitivity = 1 / 100f;
            ThumbstickMoveSensitivity = 5f;
            MovementSpeed             = 1f;
            MouseLock = true;

            Enabled = true;
        }