6 namespace droid.Runtime.Prototyping.Actuators {
10 [AddComponentMenu(ActuatorComponentMenuPath._ComponentMenuPath
12 + ActuatorComponentMenuPath._Postfix)]
17 protected string _Layer_Mask =
"Obstructions";
22 protected bool _No_Collisions =
true;
27 protected Space _Relative_To = Space.Self;
40 public override string PrototypingTypeName {
get {
return "Transform"; } }
45 protected override void Setup() {
46 this._x = this.Identifier +
"X_";
47 this._y = this.Identifier +
"Y_";
48 this._z = this.Identifier +
"Z_";
49 this._rot_x = this.Identifier +
"RotX_";
50 this._rot_y = this.Identifier +
"RotY_";
51 this._rot_z = this.Identifier +
"RotZ_";
78 this.transform.Translate(Vector3.left * motion.
Strength,
this._Relative_To);
80 this.transform.Translate(-Vector3.up * motion.
Strength,
this._Relative_To);
82 this.transform.Translate(-Vector3.forward * motion.
Strength,
this._Relative_To);
84 this.transform.Rotate(Vector3.left, motion.
Strength,
this._Relative_To);
86 this.transform.Rotate(Vector3.up, motion.
Strength,
this._Relative_To);
88 this.transform.Rotate(Vector3.forward, motion.
Strength,
this._Relative_To);