-
Expression writing
Hi everyone,
Ive been studying expressions and have noticed that at the end of certain expressions there is [x,y] at the end of an expression.
I want to know the significance of putting [x,y] or [xPosition,yPosition,zPosition] at the end?
For example:
var x = transform. position[0];
var y = Math.sin(time);
[x,y]Or
var xPosition = transform.xRotation;
var yPosition = transform.yRotation;
var zPosition = transform.zRotation;
[xPosition,yPosition,zPosition ]