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

            Enabled = true;
        }
コード例 #2
0
        public FlyAroundInputComponent(
            [FromParent, RequireExisting] FirstPersonCameraComponent firstPersonCameraComponent)
        {
            _firstPersonCameraComponent = firstPersonCameraComponent;
            ThumbstickLookSensitivity   = 1 / 100f;
            ThumbstickMoveSensitivity   = 1 / 20f;

            Enabled = true;
        }
コード例 #3
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;
        }
コード例 #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;
        }