Space Engineers

Space Engineers

Improvised Engineering (Grid Pickup/Holding/Manipulation Mod) Nicknamed: Grabby Hands
此主题已被锁定
CzBuCHi 8 月 31 日 上午 5:36
Fixed rotate behavior
I modified code so rotation keys behave simillar way as when 'holding projection' in your hand before placing it into the world ...

changes:
1) extracted GrabOrRelease method from UpdateAfterSimulation
2) extracted Manipulate method from UpdateAfterSimulation
3) extracted Rotate method from Manipulate
4) completely rewrote Rotate method :)
- added SHIFT button to rotate grid to player head matrix - not needed, but simplified testing (works only when left mouse button is held)

first 3 changes are there just to make code more readable ...

my updated GridPickupMod.cs (i didnt change other files) is here[gist.github.com]
< >
正在显示第 1 - 5 条,共 5 条留言
CzBuCHi 8 月 31 日 上午 5:40 
note: for anyone who dont want to wait for update: grab my gist and place it here:

c:\Program Files (x86)\Steam\steamapps\workshop\content\244850\2890866161\Data\Scripts\Math0424\GridPickupMod.cs

(you may have different steam workshop directory path)
mz  [开发者] 9 月 2 日 下午 5:09 
will add (and sorry for the messy code xD)
CzBuCHi 9 月 3 日 上午 9:26 
引用自 mz
will add (and sorry for the messy code xD)

code that works is never messy ... unreadable maybe :D
mz  [开发者] 11 月 17 日 下午 5:29 
I finally found the time to implement the code.
first off, thank you for taking the time and writing something better than my mess xD

I couldn't use everything but the rotation should be working now.
That magical "shift" snap align to camera is too much, sorry.
Especially with larger grids it will just result in gird clipping into walls or crashing into other stuff.
I am currently looking for a way to just rotate it to that "target rotation" via a torque, since i like the idea.
I guess tomorrow the new version will be up ^^
mz  [开发者] 11 月 18 日 上午 12:09 
Update is out on both mods
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50