introduce editorconfig
This commit is contained in:
18
.editorconfig
Normal file
18
.editorconfig
Normal file
@@ -0,0 +1,18 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
tab_width = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
indent_size = 1
|
||||
|
||||
[*.{css,js,json}]
|
||||
indent_style = tab
|
||||
@@ -11,12 +11,12 @@ Every message uses [flatbuffers](https://google.github.io/flatbuffers/) and [fle
|
||||
namespace StardustXR;
|
||||
|
||||
table Message {
|
||||
type: ubyte;
|
||||
id: uint;
|
||||
object: string;
|
||||
method: string;
|
||||
error: string;
|
||||
data:[ubyte] (flexbuffer);
|
||||
type: ubyte;
|
||||
id: uint;
|
||||
object: string;
|
||||
method: string;
|
||||
error: string;
|
||||
data:[ubyte] (flexbuffer);
|
||||
}
|
||||
|
||||
root_type Message;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# HandInput
|
||||
|
||||
### Derived from [InputMethod](../InputMethod)
|
||||
|
||||
A full 27-bone hand+forearm input with useful abstractions provided through the datamap.
|
||||
@@ -6,6 +7,7 @@ A full 27-bone hand+forearm input with useful abstractions provided through the
|
||||
The local space of a hand is where +Z is away from the palm, +Y is from the palm to the fingers, and +X is orthogonal and to the right.
|
||||
|
||||
## Serialization
|
||||
|
||||
| Key | Value Type |
|
||||
|-----------|--------------|
|
||||
| origin | `Vector3` |
|
||||
@@ -15,36 +17,39 @@ The local space of a hand is where +Z is away from the palm, +Y is from the palm
|
||||
|
||||
```js
|
||||
[
|
||||
thumb metacarpal,
|
||||
thumb proximal,
|
||||
thumb distal,
|
||||
thumb tip,
|
||||
index metacarpal,
|
||||
index proximal,
|
||||
index intermediate,
|
||||
index distal,
|
||||
index tip,
|
||||
middle metacarpal,
|
||||
middle proximal,
|
||||
middle intermediate,
|
||||
middle distal,
|
||||
middle tip,
|
||||
ring metacarpal,
|
||||
ring proximal,
|
||||
ring intermediate,
|
||||
ring distal,
|
||||
ring tip,
|
||||
little metacarpal,
|
||||
little proximal,
|
||||
little intermediate,
|
||||
little distal,
|
||||
little tip
|
||||
thumb metacarpal,
|
||||
thumb proximal,
|
||||
thumb distal,
|
||||
thumb tip,
|
||||
index metacarpal,
|
||||
index proximal,
|
||||
index intermediate,
|
||||
index distal,
|
||||
index tip,
|
||||
middle metacarpal,
|
||||
middle proximal,
|
||||
middle intermediate,
|
||||
middle distal,
|
||||
middle tip,
|
||||
ring metacarpal,
|
||||
ring proximal,
|
||||
ring intermediate,
|
||||
ring distal,
|
||||
ring tip,
|
||||
little metacarpal,
|
||||
little proximal,
|
||||
little intermediate,
|
||||
little distal,
|
||||
little tip
|
||||
]
|
||||
```
|
||||
|
||||
(This section is WIP)
|
||||
|
||||
## Datamap
|
||||
|
||||
### Required
|
||||
|
||||
| Key | Value Type | Description |
|
||||
|-----------------|-----------------------------|--------------------------------------------------------------------|
|
||||
| confidence | `float` (range `0.0`-`1.0`) | How confident the hand tracker is of the pose of the hand |
|
||||
@@ -54,4 +59,5 @@ The local space of a hand is where +Z is away from the palm, +Y is from the palm
|
||||
| grabStrength | `float` (range `0.0`-`1.0`) | How much the hand is making a fist |
|
||||
|
||||
## Methods
|
||||
|
||||
**TODO**: Properly secured field distance calculation accessible to clients
|
||||
@@ -33,7 +33,7 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
type: 'doc',
|
||||
docId: 'getting-started/overview',
|
||||
docId: 'overview',
|
||||
position: 'left',
|
||||
label: 'Docs',
|
||||
},
|
||||
|
||||
13
sidebars.js
13
sidebars.js
@@ -1,12 +1,13 @@
|
||||
/**
|
||||
* Creating a sidebar enables you to:
|
||||
- create an ordered group of docs
|
||||
- render a sidebar for each doc of that group
|
||||
- provide next/previous navigation
|
||||
Creating a sidebar enables you to:
|
||||
- create an ordered group of docs
|
||||
- render a sidebar for each doc of that group
|
||||
- provide next/previous navigation
|
||||
|
||||
The sidebars can be generated from the filesystem, or explicitly defined here.
|
||||
|
||||
Create as many sidebars as you want.
|
||||
The sidebars can be generated from the filesystem, or explicitly defined here.
|
||||
|
||||
Create as many sidebars as you want.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user