Object Rotation
#1

'Been looking for an answer but couldn't find anything.

The question is. Can you move an object from this point: http://gyazo.com/83fb4047e4a11f5b45c644100501b26a

to this: http://gyazo.com/fd52887f9a8347882379d889dfda8a66 ?
Reply
#2

I'm not completely sure on that one, but I suppose you can't because you can't simply move objects that exist by default. You could destroy that object and create a new one with the right rot, but then again, that object would be removed by the removing code because it will cover all objects of the same type within a specific area.
Reply
#3

Well i already removed the object in-game,recreated it and i am trying to figure if there is any way to rotate it like that,i mean a 'point' should be stable and make the object rotate around that point,kind of.
As in the the point where the object still touches the ground remains the same.
Reply
#4

The issue with an object like that is moving objects affects them from their center point so your going to have issues trying to move certain objects you can however attach that object to another one and rotate that you will likely have some collision issues however.
Reply
#5

Well it is possible. Just recreate the object and change rotation. Now do you want object to just stay like that ok. If you want object to move on command check out my tutorial. Just use your objects coordinates and id.
Btw if you want i will do it for you, but tommorrow.
Reply
#6

Quote:
Originally Posted by LeroyII
Посмотреть сообщение
Well it is possible. Just recreate the object and change rotation. Now do you want object to just stay like that ok. If you want object to move on command check out my tutorial. Just use your objects coordinates and id.
Btw if you want i will do it for you, but tommorrow.
Your not getting the point, the pivot will be all fucked up doing that since it rotates from the center of the object.
Reply
#7

But it is possible.. It should be very simple with mta map editor.. And i am not sure does he want object to remove on command or not but if he does, just rotate and move object.. I'll do it tommorrow.
Reply
#8

Quote:
Originally Posted by Pottus
Посмотреть сообщение
The issue with an object like that is moving objects affects them from their center point so your going to have issues trying to move certain objects you can however attach that object to another one and rotate that you will likely have some collision issues however.
So you are saying that i can add a second object and i can make the other one spin around the first object right?
Reply
#9

Quote:
Originally Posted by [rG]Cold
Посмотреть сообщение
So you are saying that i can add a second object and i can make the other one spin around the first object right?
Pretty much it really depends on the object and where it's center is which will determine how it will rotate. Given the pictures you have shown getting that object to rotate like that won't work unless you attach it to another object then rotate the object it is attached to.
Reply
#10

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Pretty much it really depends on the object and where it's center is which will determine how it will rotate. Given the pictures you have shown getting that object to rotate like that won't work unless you attach it to another object then rotate the object it is attached to.
wat r u talking about, attaching object to another object?...

in the picture (looks like samp map editor) just copy the coords and rotation in the right side and create a new object with those coords

then delete the old object (remove building)
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)