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