A sensor measuring the distance in the forward direction.
|
| DistanceSensor (Participant participant) |
| Constructor for a new distance sensor.
|
|
| DistanceSensor (Participant owner, byte thingId) |
| Create a distance sensor with the given ID.
|
|
override void | CreateComponent () |
|
|
|
override void | ProcessBinary (byte[] bytes) |
| Function to extract the distance received in the binary message.
|
|
void | AddChild (Thing child) |
| Add a child Thing to this Thing.
|
|
bool | RemoveChild (Thing child) |
| Remove the given thing as a child of this thing.
|
|
void | Update (bool recurse=false) |
| Update de state of the thing.
|
|
virtual void | Update (ulong currentTimeMs, bool recurse=false) |
| Update this thing.
|
|
delegate void | ChangeHandler () |
|
delegate void | SphericalHandler (Spherical v) |
|
delegate void | ThingHandler (Thing t) |
|
virtual byte[] | GenerateBinary () |
| Function used to generate binary data for this thing.
|
|
|
float | distance = 0 |
| The current measured distance.
|
|
bool | terminate = false |
|
Participant | owner = null |
| The participant owning this thing.
|
|
byte | id = 0 |
| The ID of this thing.
|
|
byte | type = Type.Undetermined |
| The type of this thing.
|
|
bool | nameChanged = false |
|
string | modelUrl = "" |
| An URL pointing to the location where a model of the thing can be found.
|
|
Unity.Thing | component = null |
| A reference to the representation of the thing in Unity.
|
|
bool | hierarchyChanged = true |
| Indicator that the hierarchy of the thing has changed.
|
|
bool | positionUpdated = false |
| Boolean indicating that the thing has an updated position.
|
|
bool | orientationUpdated = false |
| Boolean indicating the thing has an updated orientation.
|
|
bool | linearVelocityUpdated = false |
| Boolean indicating the thing has an updated linear velocity.
|
|
bool | angularVelocityUpdated = false |
| Boolean indicating the thing has an updated angular velocity.
|
|
|
ChangeHandler | OnNameChanged = delegate { } |
| Event which is triggered when the name changes.
|
|
ChangeHandler | OnPoseChanged = delegate { } |
| Event triggered when the pose has changed.
|
|
SphericalHandler | OnLinearVelocityChanged = delegate { } |
| Event triggered when the linear velocity has changed.
|
|
SphericalHandler | OnAngularVelocityChanged = delegate { } |
| Event triggered when the angular velocity has changed.
|
|
static ThingHandler | OnNewThing = delegate { } |
| Event triggered when a new thing has been created.
|
|