ViveController
new ViveController(id: any)
Author: stewdio / http://stewd.io
Parameters
HeadMountedDisplay
This class represents a HMD(Head Mounted Display) Controller.
new HeadMountedDisplay(space:
Object)
Parameters
space (Object)
The space instance
Instance Members
Handles the trigger up event. Triggers the space's touch event on default.
Parameters
mode (Boolean
= true)
Disable this event.
Matter
This class a matter in space.
Parameters
| Name |
Description |
props.existence String
|
The existence of space.
|
props.graphics String
|
The visual representation of matter.
|
Space
This class represents a relative space.
Parameters
| Name |
Description |
props.color String
|
The space's color.
|
props.matter String
|
Matter that should come with the space.
|
Instance Members
Contains all Matter in space.
matter
Existence
This class represents a matter's existence.
Parameters
| Name |
Description |
props.start String
|
Start of the existence (Date object).
|
props.end String
|
End of the existence (Date object).
|
Example
new Matter({
existence: new Existence({
start: new Date().plus('m', 1),
end: new Date().plus('m', 2),
}),
graphics: new Graphics({
geometry: new Cube(true)
}, true)
});
Instance Members
Existence has started. (Current date is higher than start date)
started
Parameters
Existence has ended. (Current date is lower than start date)
ended
Parameters
Start date of existence.
start
Parameters
End date of existence.
end
Parameters