#Why does rotation behave differently in the editor and in code/game

1 messages · Page 1 of 1 (latest)

granite igloo
#

the element on the pictures should be pivoted to back part of the opening and it works fine on in the editor (first 2 pictures) however in the game itself it rotates around itself and ignores the pivot point

daring monolith
#

pls respond to this man

#

he needs help

granite igloo
wild plover
#

How are you rotating it in the script

daring monolith
#

Part. Pivot = part.pivot * Cframe.angles(0,0,math.rad(90))

#

There is another problem where the part is not anchored to the rest of the tank when the tank is moved

#

We want to set the part's local / relative position and rotation

daring monolith
tight gazelleBOT
#

studio** You are now Level 1! **studio

wild plover
daring monolith
wild plover
daring monolith
#

no solution cares about the pivot point and just ignores it

wild plover
daring monolith
#

so illogical bruh

wild plover
#

I'm not sure why you think it's illogical

daring monolith
#

first time seeing a system like that

#

godot, unity and unreal make hierarchy and parent-child relationships matter

wild plover
#

🤷‍♂️