-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from morikatron/develop
Release 1.3.1
- Loading branch information
Showing
184 changed files
with
8,341 additions
and
36 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
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,101 @@ | ||
# toio SDK for Unity | ||
|
||
> **Switch Language:** [`日本語`](README.md) | `English` | ||
## Overview | ||
|
||
**toio SDK for Unity** is a Software Development Kit for controlling toio™ Core Cube (hereafter referred to as Cubes) in Unity. | ||
|
||
toio SDK for Unity makes it easy to develop applications that use Cubes. In addition, the simulator function allows you to check the operation of Cube on the screen without using the actual device, so you can develop quickly and efficiently. | ||
|
||
|
||
<p align="center"> | ||
<img src="./docs_EN/res/main/overview.gif" width=720></img> | ||
</p> | ||
|
||
<details> | ||
<summary>One of the key features of toio SDK for Unity is that it allows you to run both the simulator and the real Cube with a single source code (click to expand), as shown above. </summary> | ||
|
||
```C# | ||
using UnityEngine; | ||
using toio; | ||
|
||
public class Hello_Toio : MonoBehaviour | ||
{ | ||
CubeManager cubeManager; | ||
Cube cube; | ||
|
||
async void Start() | ||
{ | ||
// create a cube manager | ||
cubeManager = new CubeManager(); | ||
// connect to the nearest cube | ||
cube = await cubeManager.SingleConnect(); | ||
} | ||
|
||
void Update() | ||
{ | ||
// check connection status and order interval | ||
if(cubeManager.IsControllable(cube)) | ||
{ | ||
cube.Move(100, 70, 200); | ||
// | | `--- duration [ms] | ||
// | `------- right motor speed | ||
// `------------ left motor speed | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
|
||
## Feature list | ||
|
||
- Simulator | ||
- Ability to move Cubes in Unity Editor | ||
- Interactive UI like Drag&Drop, force pull, push and etc. | ||
- Multiple official or custom mats can be set | ||
- toio Collection and Standard ID for developers. | ||
- One useful set of mats, lights, and cameras for simulator | ||
- BLE communication module | ||
- Communicate with Cube via iOS app | ||
- Communicating with Cube via Web App | ||
- Communicate with Cube in Android app | ||
- Communicate with Cube when playing in Unity Editor on Mac | ||
- Cube | ||
- One source code to run both simulator and real Cubes in the same way | ||
- Scan, connect, and reconnect Cubes | ||
- CubeHandle (useful movement feature) | ||
- Guide Cube to the target position and angle | ||
- Borders can be restricted to keep Cube from leaving the mat | ||
- Control Cube for a certain distance or angle with a single call | ||
- Navigator (advanced group control) | ||
- Human-like collision avoidance allows multiple cubes to avoid colliding with each other | ||
- Bird-oid allows Cubes to move as a herd | ||
- Collision avoidance and voids can be combined and run simultaneously | ||
- In addition to moving to the target, it can also navigate away from the target. | ||
|
||
|
||
## Operating Environment | ||
|
||
- toio™ Core Cube | ||
- Mat for toio™Core Cube (Play mat included in toio Collection, Simple play mat included in toio™Core Cube (single package), toio play mat for development) | ||
- Mac (macOS ver. 10.14 or higher) | ||
- Windows 10 (64 bit version only) | ||
- iOS devices (iOS ver. 12 or higher) | ||
- Android device (Android OS 9.0 or higher) | ||
- Unity (2019.4.0f1 LTS) | ||
|
||
|
||
## Documentation | ||
|
||
For details on installation, tutorials, sample introductions, and feature explanations, please refer to the following documents. | ||
|
||
- ["toio SDK for Unity Documentation"](docs_EN/README.md) | ||
|
||
## License | ||
|
||
- [LICENSE](LICENSE) | ||
- [Third Party Notices](Third-Party-Notices.md) | ||
- [Intellectual Property Notice](Trademark-Notices_EN.md) |
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,5 @@ | ||
# Trademark Notice | ||
|
||
"toio™" is a registered trademark or trademark of Sony Interactive Entertainment Inc. | ||
|
||
All other product names, service names, company names or logos are trademarks, registered trademarks or trade names of their respective owners. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# FAQ | ||
|
||
## Table of Contents | ||
|
||
- [Basics](FAQ.md#basics) | ||
- [I downloaded toio SDK for Unity, but the samples don't work.](FAQ.md#i-downloaded-toio-sdk-for-unity-but-the-samples-dont-work) | ||
|
||
- [Simulator](FAQ.md#simulator) | ||
- [I'm not sure which mats will work best for my development.](FAQ.md#im-not-sure-which-mats-will-work-best-for-my-development) | ||
- [Is the Stage Prefab required?](FAQ.md#is-the-stage-prefab-required) | ||
- [Is there anything I should be aware of if I don't use the Stage Prefab?](FAQ.md#is-there-anything-i-should-be-aware-of-if-i-dont-use-the-stage-prefab) | ||
|
||
- [Web application related](FAQ.md#web-application-related) | ||
- [Web apps do not work well on Windows PC](FAQ.md#web-apps-do-not-work-well-on-windows-pc) | ||
|
||
## Basics | ||
|
||
### I downloaded toio SDK for Unity, but the samples don't work. | ||
|
||
If you get the following error message and the program does not work, UniTask may not be installed. | ||
|
||
``` | ||
Assets\toio-sdk-unity\Assets\toio-sdk\Scripts\Cube\Scanner\NearScanner.cs(54,22): error CS0246: The type or namespace name 'UniTask<>' could not be found (are you missing a using directive or an assembly reference?) | ||
``` | ||
|
||
To run toio SDK for Unity, you need to install UniTask, see [here](download_sdk.md#install-unitask). | ||
|
||
## Simulator | ||
|
||
### I'm not sure which mats will work best for my development. | ||
> Keywords: Mat Specifications | ||
The only difference between the various mats is the appearance and the coordinate range. For specifications, please refer to [toio™ Core Cube Technical Specification 2.1.0](https://toio.github.io/toio-spec/docs/info_position_id) and ["Developer's Mat (tentative name)"](https://toio.io/blog/detail/20200423-1.html). | ||
|
||
If you simply want to run it in Simulator, it doesn't matr which one you use.<br> | ||
If you want to develop an application that actually runs Cube and not just complete it in Simulator, you should use the same type of mat that you actually use. | ||
|
||
Mat class also provides coordinate range, center coordinate, and coordinate transformation functions depending on the selected mat type, so please refer to [document](usage_simulator.md#2-mat-prefab). | ||
|
||
### Is the Stage Prefab required? | ||
> Keywords: Stage | ||
It is not required. | ||
|
||
As described in [Documentation](usage_simulator.md#5-stage-prefab), the Stage Prefab and Cube Prefab are a set of mats, cameras, components necessary for operation, etc. If you put the Stage Prefab and Cube Prefab into your scene, you can quickly set up a basic development environment. | ||
|
||
### Is there anything I should be aware of if I don't use the Stage Prefab? | ||
> Keywords: Stage | ||
Of course, you will not be able to use the Stage's exclusive focus and target pole functions. | ||
|
||
You will need to add the EventSystem, etc. needed to operate Cube on your own. For details, please refer to the [Documentation](usage_simulator.md#45-manipulating-cube-objects-cubeinteraction). | ||
|
||
## Web application related | ||
|
||
### Web apps do not work well on Windows PC | ||
> Keywords: Windows Bluetooth BLE | ||
On Windows PCs, problems have been confirmed with multiple-unit connections. Please check [[here]](build_web.md#unstable-multi-unit-connection-using-windows-pc). |
Oops, something went wrong.