Babulesnik
Member
|
Change position
I need to change potsitsiyu only on Y. As this is not prescribing x and z: ObjItem [0]. pos (Vec (13,18,10));
Is a function returns a value of Y and not change it: ObjItem [0]. pos (). y;
|
|
04-22-2011 11:15 AM |
|
Dynad
Member
|
RE: Change position
To keep it easy you can do:
ObjItem [0]. pos (Vec (ObjItem [0]. pos ().x , 18, ObjItem [0]. pos ().z));
There is always evil somewhere, you just have to look for it properly.
|
|
04-22-2011 12:12 PM |
|
Babulesnik
Member
|
RE: Change position
(04-22-2011 12:12 PM)Dynad Wrote: To keep it easy you can do:
ObjItem [0]. pos (Vec (ObjItem [0]. pos ().x , 18, ObjItem [0]. pos ().z));
Thank you,I have another question:
Still, there are ways to turn a matrix addition: ObjItem [0]. matrix (Matrix (ObjItem [0]. matrix ()). rotateXY (Random.f (45), Random.f (45)))?
(This post was last modified: 04-22-2011 12:20 PM by Babulesnik.)
|
|
04-22-2011 12:19 PM |
|