bevy-yoleck icon indicating copy to clipboard operation
bevy-yoleck copied to clipboard

Add scale and rotate to UI

Open zaqxsw-dev opened this issue 1 year ago • 3 comments

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

zaqxsw-dev avatar Mar 30 '24 15:03 zaqxsw-dev

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.

zaqxsw-dev avatar Apr 03 '24 00:04 zaqxsw-dev

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 avatar Apr 03 '24 12:04 idanarye

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)?

idanarye avatar Apr 03 '24 14:04 idanarye

@idanarye please review

zaqxsw-dev avatar Jun 29 '24 03:06 zaqxsw-dev