Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Allow Digital and SingleAxis input actions for teleport #217

Merged
merged 12 commits into from
Dec 21, 2020

Conversation

FejZa
Copy link
Contributor

@FejZa FejZa commented Dec 21, 2020

XRTK - Mixed Reality Toolkit Pull Request

Overview

Companion PR to XRTK/com.xrtk.core#729

@FejZa
Copy link
Contributor Author

FejZa commented Dec 21, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SimonDarksideJ
Copy link
Contributor

First issue.
When the input action for Teleport is changed to something other than Vector two, turning no longer works :S

@FejZa
Copy link
Contributor Author

FejZa commented Dec 21, 2020

Not an issue but to be expected. How is it supposed to work with only a single axis / digital input?

else
{
IsTeleportRequestActive = true;
BaseCursor?.SetVisibility(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do a traditional null check on the unity engine object types

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I'll change that in another PR as this code was not introduced in this PR and I don't want to trigger another build on this one. Need this to release to continue testing.

@SimonDarksideJ
Copy link
Contributor

Ok, as per discussion, PR is fine as is. Turning is not supported with Digital or Single Axis. This will be addressed in 0.3 with a new Locomotion Feature

@FejZa
Copy link
Contributor Author

FejZa commented Dec 21, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FejZa FejZa merged commit 6410dfd into development Dec 21, 2020
@FejZa FejZa deleted the feature/721-teleport-input-action branch December 21, 2020 14:50
XRTK-Build-Bot pushed a commit that referenced this pull request Dec 25, 2020
* Update validator default profile

* Get TeleportAction from system in TeleportPointer

* Prepare TeleportPointer handling for Digital/SingleAxis

* Fix TeleportPointer inspector still reasing obsolete fields

* Implement digital teleport action

* Remove logs

* Implement single axis teleport

* Use > instead of >=

* FInalize and clean up

* Assign default teleport action in SDK

* Bump core dependency
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants