2 using System.Collections.Generic;
8 namespace droid.Runtime.Prototyping.Sensors.Transform {
13 SensorComponentMenuPath._ComponentMenuPath +
"Position" + SensorComponentMenuPath._Postfix)]
18 [Header(
"Observation", order = 103)]
24 [Header(
"Specific", order = 102)]
30 public override string PrototypingTypeName {
get {
return "Position"; } }
34 public Vector3 ObservationValue {
35 get {
return this._position; }
37 this._position = this.TripleSpace.IsNormalised
51 public override IEnumerable<float> FloatEnumerable {
52 get {
return new[] {this.ObservationValue.x, this.ObservationValue.y, this.ObservationValue.z}; }
58 if (this.ParentEnvironment != null && this._space ==
ObservationSpace.Environment_) {
59 this.ObservationValue = this.ParentEnvironment.TransformPoint(this.transform.position);
61 this.ObservationValue = this.transform.localPosition;
63 this.ObservationValue = this.transform.position;
Vector3 ClipNormaliseRound(Vector3 v)