A sensor which can detect touches.
|
| | TouchSensor (RemoteParticipant participant, bool invokeEvent=true) |
| | Create a touch sensor.
|
| |
| override void | CreateComponent () |
| | Function which can be used to create components in external engines.
|
| |
|
delegate void | ChangeHandler () |
| |
|
delegate void | SphericalHandler (Spherical v) |
| |
|
delegate void | ThingHandler (Thing t) |
| |
| void | AddChild (Thing child) |
| | Attach a thing as a child of this thing.
|
| |
| void | RemoveChild (Thing child) |
| | Remove the given thing as a child of this thing.
|
| |
|
void | Update () |
| | Convience function for use in Unity which removes the need for a currentTime argument.
|
| |
| virtual void | Update (ulong currentTime) |
| | Update this thing.
|
| |
| virtual byte[] | GenerateBinary () |
| | Function used to generate binary data for this thing.
|
| |
| virtual void | ProcessBinary (byte[] bytes) |
| | Function used to process binary data received for this thing.
|
| |
|
|
bool | touchedSomething = false |
| | Value which is true when the sensor is touching something, false otherwise.
|
| |
|
RemoteParticipant | participant |
| | The participant to which this thing belongs.
|
| |
|
byte | networkId |
| | The network ID of this thing.
|
| |
|
byte | id |
| | The ID of this thing.
|
| |
|
byte | type |
| | The type of this thing. This can be either a Thing::Type (needs casting) or a byte value for custom types.
|
| |
|
List< Thing > | children = new List<Thing>() |
| | The list of children of this thing.
|
| |
|
string | modelUrl = "" |
| | An URL pointing to the location where a model of the thing can be found.
|
| |
|
Spherical | angularVelocity = Spherical.zero |
| | The angular velocity of the thing in local space.
|
| |
|
Unity.Thing | component = null |
| | A reference to the representation of the thing in Unity.
|
| |
|
|
ChangeHandler | OnParentChanged = delegate { } |
| | Event which is triggered when the parent changes.
|
| |
|
ChangeHandler | OnNameChanged = delegate { } |
| | Event which is triggered when the name changes.
|
| |
|
ChangeHandler | OnPositionChanged = delegate { } |
| | Event triggered when the position has changed.
|
| |
|
ChangeHandler | OnOrientationChanged = delegate { } |
| | Event triggered when the orientation has changed.
|
| |
|
SphericalHandler | OnLinearVelocityChanged = delegate { } |
| | Event triggered when the linear velocity has changed.
|
| |
|
static ThingHandler | OnNewThing = delegate { } |
| | Event triggered when a new thing has been created.
|
| |