Inheritance: IPrerenderableComponent, IHasTransform, IEnabledComponent
        public FlyAroundInputComponent(
            [FromParent, RequireExisting] FirstPersonCameraComponent firstPersonCameraComponent)
        {
            _firstPersonCameraComponent = firstPersonCameraComponent;
            ThumbstickLookSensitivity = 1/100f;
            ThumbstickMoveSensitivity = 1/20f;

            Enabled = true;
        }
        public FlyAroundInputComponent(
            [FromParent, RequireExisting] FirstPersonCameraComponent firstPersonCameraComponent)
        {
            _firstPersonCameraComponent = firstPersonCameraComponent;
            ThumbstickLookSensitivity   = 1 / 100f;
            ThumbstickMoveSensitivity   = 1 / 20f;

            Enabled = true;
        }
        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;
        }
Exemple #4
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;
        }