void Update() { if (isValid()) { TBVector forward = TBVector.forward(); TBVector up = TBVector.up(); if (useObjectRotation_) { forward = Utils.toTBVector(transform.forward); up = Utils.toTBVector(transform.up); } spat_.setRotation(forward, up); } }
static public Vector3 toVector3(TBVector vector) { return(new Vector3(vector.x, vector.y, vector.z)); }