Format
typescript
Transform.SetLocalTR(pos, rot)class: Transform
Description
Sets the local position and local rotation of an object relative to its parent object.
Parameters
| param_name | type | description |
|---|---|---|
| pos | Vector3 | Local position |
| rot | Quaternion | Local rotation |
Return
| type | description |
|---|---|
void |
Code Example
typescript
let transform = this.transform;
let vec3_o = new Vector3(1,0,0);
let quat_o = new Quaternion(1,0,0,0);
transform.SetLocalTR(vec3_o, quat_o);