problem with gameObject scale

hi to all. i read all docs about transform object and how to use it correctly. but i have a problem. i explain my situation: i have a zombie model with a rigidbody and box collider attached. i want to move it and for do this a set rigidbody to kinematich and i change transform value. but when my zombie is moving , it scale change and it became always more big. i don't understand if this problem is associate directly to scale of object or if is a problem of view of main camera. my model scale it was setted during the import process and i don't modify it directly by using tranform object. somebody have an idea to solve this problem? thanks a lot,if a few day that i try to solve it ;)

"i change transform value" -- I hope you're changing transform.position. When you select the zombie and look at it's transform component in the inspector are the actual scale values changing?

You should be adding comments, not answers to your question. If the terrain is not flat then I'd expect to see the 'y' value change. Do the player and the enemy have the exact same 'y' values in their positions? If not you're going to see changes to 'y'.

2 Answers

2

yes i modify transform.position ;) when zombie walk scale value not change but y position yes. this is strange because zombie walk in x and z axis. y change but zombie touch always terrain and this mean that it became more big :( :o

oh my god ;) is scale is right. i have incremented velocity zombie and it move also in y axis ;) but how tis is possible? i move it with this 2 line : `enemy.transform.LookAt(enemy.getTarget().transform); enemy.transform.Translate(0,0,speed*Time.deltaTime);`