SA-MP Forums Archive
Object distortion upon 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 distortion upon rotation (/showthread.php?tid=642072)



Object distortion upon rotation - Eoussama - 24.09.2017

Hello, guys, hope you're doing fine,

So I was experimenting some rotation stuff on few objects, I noticed that when I try to rotate vehicle wheel objects, they distort upon doing so, (here is a list of the wheel objects:
http://dev.prineside.com/en/gtasa_sa...earch/?q=Wheel)

It happens whether I set the rotation on their creation CreateDynamicObject(modelid, x, y, z, rx, ry, rz); or when I use SetDynamicObjectRotation(modelid, rx, ry, rz);

I tried editing them in SA-MP map construction too, they worked fine there, but when I imported the map, the wheels became distorted again, it's the same whether I use streamer or not,

preview:

Before (this is how the object is before I rotate it)


After (this is the object after rotation)
As you can see, it distorted so much it became flat.

Hope someone helps, thanks in advance.


Re: Object distortion upon rotation - Eoussama - 25.09.2017

Bumping this after +24 hours, I hope someone helps.


Re: Object distortion upon rotation - Slicebook - 25.09.2017

arms object bug,try other body part


Re: Object distortion upon rotation - NaS - 25.09.2017

That's the default behaviour of wheels. There is no way of changing that, except extracting the models and adding them to your CUSTOM.img & .ide as regular objects and a different ID.

It's hardcoded to the IDs (or simply a GTA SA bug), that's why they appear normally in the Map Editor since it's a standalone renderer. They were never meant to be used anywhere else than for vehicles, only in SAMP they can be spawned as objects (normally it would crash the game).