|
hi im trying to rotate a prefab on X 90 but its not doing it ive tried using this
but its not doing it my object is a piece of tetris looking like this watching it from top
and i want it to look like this
i have also tried modifying the prefab and i can modify scale but not rotation any help plz?
(comments are locked)
|
|
Make sure you understand the difference between a prefab and a game object that's been instantiated (cloned) from that prefab. With the above code, it's unlikely that you're actually 'rotating a prefab'. If however that script is attached to the prefab, then any game object cloned from the prefab should indeed be rotated 90 degrees as soon as its Start() function runs. Keep in mind though that Start() only runs once, sometime before Update() is called for the first time. As such, in this case it'd probably make more sense simply to instantiate the game object with the desired orientation (rather than modifying it after the fact in the Start() function). yeah... the thing is i cant really do that it wont let me modify the rotation of the imported asset :S and i tried using it on the Start Function because i only need it to rotate once in X and then do whatever else it needs to
Apr 30 '11 at 08:22 PM
Makenshi
(comments are locked)
|
|
seems like initializing the rotation in 0 before implementing it on the Start did the job got no idea why but it worked tyvm for the help anyways
(comments are locked)
|

also the models im using are .fbx from 3dmax