Object Rotation - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object Rotation (
/showthread.php?tid=535588)
Object Rotation -
[rG]Cold - 04.09.2014
'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 ?
Re: Object Rotation -
Rifa4life - 04.09.2014
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.
Re: Object Rotation -
[rG]Cold - 04.09.2014
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.
Re: Object Rotation -
Pottus - 04.09.2014
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.
Re: Object Rotation -
LeroyII - 04.09.2014
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.
Re: Object Rotation -
Pottus - 04.09.2014
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.
Re: Object Rotation -
LeroyII - 04.09.2014
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.
Re: Object Rotation -
[rG]Cold - 04.09.2014
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?
Re: Object Rotation -
Pottus - 04.09.2014
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.
Re: Object Rotation -
Ihateyou - 04.09.2014
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)