idanarye / bevy-yoleck

Your Own Level Editor Creation Kit
Other
172 stars 11 forks source link

Add scale and rotate to UI updated #38

Closed zaqxsw-dev closed 4 months ago

zaqxsw-dev commented 7 months ago

Able visual edit scale when entity created with Vpeol3dScale and rotation edit with Vpeol3dRotation

zaqxsw-dev commented 7 months ago

I understood why on rotation cause issue. Quat change x,y,z angles to valid euler angles and this makes the object twitch. I will try implement implement rotations like a blender.

idanarye commented 7 months ago

Remember that Yoleck is a level editor (or rather - a tool for creating ones) and not a scene editor. The individual game will know better which axes to prioritize. It'll probably even want it the other way around - the Y axis as the the main (first? last?) rotation axis with X and Z having a more limited range (if at all) because you want to be able to make the entity face the other way but you don't want to be able to place it upside-down.

idanarye commented 7 months ago

Also, the exclusive systems feature may be of use here. What if instead of these three rotation sliders, there would be buttons for rotation around various axes, and once you click one of them it'd only rotate around that specific axis (until you press a key)?

zaqxsw-dev commented 4 months ago

@idanarye please review