![]() |
Roboid Control for C# 0.4
|
The Unity representation of a Roboid Control distance sensor.
Public Member Functions | |
| void | UpdateThing () |
| Update the Unity state. | |
Static Public Member Functions | |
| static DistanceSensor | Create (RoboidControl.DistanceSensor coreSensor) |
| Create the Unity representation of the distance sensor. | |
| static Thing | Create (RoboidControl.Thing core) |
| Create a Unity representation of a Thing. | |
Public Attributes | |
| Participant | owner |
| The owner of this thing. | |
Protected Member Functions | |
| virtual void | Start () |
| Start the Unity representation. | |
| void | Init (RoboidControl.Thing core) |
| Initialize the Thing. | |
| virtual void | Update () |
| Update the Unity rendering. | |
| virtual void | FixedUpdate () |
| Update the Unity state (just calls UpdateThing) | |
| virtual void | HandlePose () |
| Handle a Pose event. | |
| virtual void | HandleBinary () |
| Handle a Binary event. | |
Properties | |
| RoboidControl.DistanceSensor | coreSensor [get] |
| The core distance sensor. | |
| RoboidControl.Thing | core [get, set] |
| The core C# thing. | |
|
static |
Create the Unity representation of the distance sensor.
| core | The core distance sensor |
This uses a 'DistanceSensor' resource when available for the Unity representation. If this is not available, a default representation is created.
|
staticinherited |
Create a Unity representation of a Thing.
| core | The core of the thing |
|
protectedinherited |
Initialize the Thing.
| core | The core of the thing |
This affects the parent and pose of the thing
|
protectedvirtualinherited |
Update the Unity state (just calls UpdateThing)
Reimplemented in RoboidControl.Unity.DifferentialDrive, and RoboidControl.Unity.Motor.
|
protectedvirtualinherited |
Handle a Pose event.
This can update the position and/or orientation when the velocity of the thing is zero. If a velocity is not zero, the position and/or orientation update will be ignored
|
protectedvirtualinherited |
Handle a Binary event.
Reimplemented in RoboidControl.Unity.DifferentialDrive, and RoboidControl.Unity.Motor.