|
guys, i have a problem, how i make to this script "CHANGE" the x,y,z without "ADDING" the coordinate numbers example, i put on script to change the xys of a object y: 0.111 x: 0.111 z: 0.111 and on the object have this xys y: 0.300 x: 0.300 z: 0.300 the script now make this y: 0.400 x: 0.400 z: 0.400 i want the object move to xys give by script not add coordinate ( y: 0.111... ) Here is the code: function Update () { }
(comments are locked)
|
|
Try this: Thanks Rod, bur continue the problem :/ OBS: The code It is within object that is to be moved... The object not stay on the cordenates give by me :/
Dec 30 '11 at 12:47 AM
Marsallima
You're english isn't too clear. Can you please explain the issue more clearly?
Dec 30 '11 at 12:54 AM
Rod Green
i'm trying to make the script move the object with the local coordinates, the script that you have gave to me, he "adds" one coordenate to another
Dec 30 '11 at 01:38 AM
Marsallima
Technically the script I gave you 'overrides' the position to the values given - it doesn't add at all but rather sets it absolutely to the fixed world coordinates.. if you want it to set local you can do something like:
Dec 30 '11 at 01:55 AM
Rod Green
Well, I tested for example, put the same coordinates of the object in the script and stay on same location: D but if I change it will not properly :/ But what I'm trying to do, I move the first gun (For the position of target), I copy the coordinates and put in the script, then put the gun in the usual plac., What happens when I run "apply", the weapon is not in the right place. :/
Dec 30 '11 at 02:14 AM
Marsallima
(comments are locked)
|
