You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Now for a very long time using setElementRotation gives different results for Peds, vehicles and objects. Even if i choose the same rot order and conformPedRotations i still cant rotate a ped exactly like an object.
To reproduce
-Create a ped, set his rotation to 45, 45, 0
-Create an object, set its rotation to 45, 45, 0
-Note how the rotation of the ped never matches with the object, i could not make it, no matter what rot order i use for the ped.
Expected behaviour
setElementRotation should have an Option to work the same way for everything.
Additional context
Maybe i oversee something here or maybe there is a custom conversion formula like "convertObjectToPedRotation" ?
The text was updated successfully, but these errors were encountered:
could be related to this, maybe? multitheftauto/mtasa-resources#150
I posted it as a resource bug, not mta bug, but I think we are talking about the same thing
You mentioned a conversion formula, well, there actually is one after all (found it after struggling with my issue all day yesterday), read the optional arguments for set/getElementRotation. It's not a conversion formula actually, but you can tell the functions to interpret the rotation as a certain type (ped/object/vehicle).
Description
Now for a very long time using setElementRotation gives different results for Peds, vehicles and objects. Even if i choose the same rot order and conformPedRotations i still cant rotate a ped exactly like an object.
To reproduce
-Create a ped, set his rotation to 45, 45, 0
-Create an object, set its rotation to 45, 45, 0
-Note how the rotation of the ped never matches with the object, i could not make it, no matter what rot order i use for the ped.
Expected behaviour
setElementRotation should have an Option to work the same way for everything.
Additional context
Maybe i oversee something here or maybe there is a custom conversion formula like "convertObjectToPedRotation" ?
The text was updated successfully, but these errors were encountered: