How to transform gameObjects in array?
Posted
by
user1764781
on Game Development
See other posts from Game Development
or by user1764781
Published on 2012-11-21T10:09:09Z
Indexed on
2012/11/21
11:24 UTC
Read the original article
Hit count: 335
I have an array of available gameObjects in the scene. An array of GO should be transformed according to received floats through UDP connection. I know it is simple, but can't figure it out how to accomplish the transformation an array of GO according to received unique floats for each GO, any help will be appreciated.
Here is a transformation floats, it might be helpful I guess:
x =ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
y= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
z= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
alpha= ReadSingleBigEndian(data, signalOffset);
signalOffset+=4;
theta= ReadSingleBigEndian(data,signalOffset);
signalOffset+=4;
phi= ReadSingleBigEndian(data,signalOffset);
signalOffset+=4;
© Game Development or respective owner