About Store Forum Documentation Contact



Post Reply 
Change position
Author Message
Babulesnik Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Post Reply