Example #1
0
 public TLImpulseObject(string gameObjectName)
 {
     gameObject    = GameObject.Find(gameObjectName);
     impulseObject = gameObject.GetComponent <ImpulseObject>();
     impulseObject.StartImpulseObject();// force start the object
     transform = new TLImpulseTransform(impulseObject);
 }
Example #2
0
 public TLImpulseTransform(ImpulseObject transform)
 {
     //this.transform = transform;
     this.position = new TLVector3("position", transform.body);
     this.rotation = new TLVector3("rotation", transform.body);
 }