forked from aframevr/aframe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable everGotGamepadEvent usage, seeing issues with latest Nightly make sure vive-controls doesn't match tracker bring in line with latest aframevr#2513 work around Nightly bug to get both controllers and trackers working at the same time bring vive-tracker in line with aframevr#2513 fix tests per separate discussion, use controllers list from system not getGamepadsByPrefix bring in line with aframevr#2505 make sure that queryObject values are used even if falsy e.g. index 0 tracked-controls needs to know about hand to filter properly and find vive trackers, given current Nightly bug. since empty string is always changed to default value (even when default is undefined), need to use 'none' to indicate empty-string hand re-clone tracker tests from controls use newly committed vive-tracker model add rotation property, which applies if no rotationOffset and allows full 3DOF rotation correct pose orientation for tracker to be what is generally expected of controllers fix default vive-tracker rotation correction, per discussion updateControllerModel for all tracked controls components; use fixed vive tracker model until published to CDN use new tracker model from CDN add rotation parameter apply rotationOffset the old way, to avoid precision issues add rotation offset test, with EPSILON change sentinel hand value to avoid node test failure zero pivot point update tracked-controls hand docs per discussion on PR fix duplicate play/pause presumably from botched merge
- Loading branch information
1 parent
386d6c9
commit 024cadd
Showing
11 changed files
with
543 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: vive-tracker | ||
type: components | ||
layout: docs | ||
parent_section: components | ||
--- | ||
|
||
[trackedcontrols]: ./tracked-controls.md | ||
|
||
The vive-tracker component interfaces with the HTC Vive Tracker. It | ||
wraps the [tracked-controls component][trackedcontrols] while adding button | ||
mappings, events, and a model. | ||
|
||
## Example | ||
|
||
```html | ||
<a-box vive-tracker></a-box> | ||
|
||
<a-box vive-tracker="index: 0"></a-entity> | ||
<a-box vive-tracker="index: 1"></a-entity> | ||
<a-box vive-tracker="index: 2"></a-entity> | ||
``` | ||
|
||
## Value | ||
|
||
| Property | Description | Default Value | | ||
|----------------------|----------------------------------------------------|----------------------| | ||
| buttonColor | Button colors when not pressed. | #FAFAFA (off-white) | | ||
| buttonHighlightColor | Button colors when pressed and active. | #22D1EE (light blue) | | ||
| index | The index of the tracker that will be tracked. | 0 | | ||
| model | Whether the model is loaded. | true | | ||
| rotationOffset | Offset to apply to model rotation. | 0 | | ||
|
||
## Events | ||
|
||
| Event Name | Description | | ||
| ---------- | ----------- | | ||
| gripdown | Grip button pressed. | | ||
| gripup | Grip button released. | | ||
| gripchanged | Grip button changed. | | ||
| menudown | Menu button pressed. | | ||
| menuup | Menu button released. | | ||
| menuchanged | Menu button changed. | | ||
| systemdown | System button pressed. | | ||
| systemup | System button released. | | ||
| systemchanged | System button changed. | | ||
| trackpaddown | Trackpad pressed. | | ||
| trackpadup | Trackpad released. | | ||
| trackpadchanged | Trackpad button changed. | | ||
| triggerdown | Trigger pressed. | | ||
| triggerup | Trigger released. | | ||
| triggerchanged | Trigger changed. | | ||
|
||
## Assets | ||
|
||
- [Controller OBJ](https://cdn.aframe.io/controllers/vive/vr_controller_vive.obj) | ||
- [Controller MTL](https://cdn.aframe.io/controllers/vive/vr_controller_vive.mtl) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.