zen-mod / ZEN

Zeus enhancement mod for Arma 3
https://zen-mod.github.io/ZEN
GNU General Public License v3.0
108 stars 47 forks source link

Add ability to rotate placement preview objects #703

Closed ampersand38 closed 1 year ago

ampersand38 commented 1 year ago

When merged this pull request will:

mharis001 commented 1 year ago

Has weird handling when the mouse world position is "past" the object's position (see images).

Images Placement preview (cursor is below the object in both cases as seen by the icon here): ![image](https://user-images.githubusercontent.com/34453221/213860293-a24028ad-76a5-4e26-afb0-1622f23cad0d.png) Normal Zeus rotation: ![image](https://user-images.githubusercontent.com/34453221/213860297-940e4efc-2770-4d72-bb22-d804a6233aee.png)
mharis001 commented 1 year ago

I pushed a simple change that should improve the behaviour and cover all cases. Could use a second look.

ampersand38 commented 1 year ago

I pushed a simple change that should improve the behaviour and cover all cases. Could use a second look.

You've managed to copy the vanilla zeus rotation behaviour xD I had always wondered why it didn't point directly to the cursor, but felt a little off. It's working from 2D screenpos!