MerlinofMines / EasyCommands

Github Repository for Ingame Scripts built by MerlinofMines. Uses MDK to Deploy to SpaceEngineerse
GNU General Public License v3.0
8 stars 3 forks source link

[Feature Request] Rotor (and Piston) support to remove limits #260

Closed MerlinofMines closed 1 year ago

MerlinofMines commented 1 year ago

Is your feature request related to a problem? Please describe. Currently there isn't a clear way to remove the upper/lower limits on Rotors, Hinges and Pistons. It'd be nicer if we could disable

Describe the solution you'd like Something like:

turn off "My Rotor" upper limit should do fine.

Additional context Probably just need to add a ReturnTyped handler on the existing limit property handler, and look for boolean = false to indicate to remove the limit.

CorwinMacGregor commented 1 year ago

it was either Malware or Digi that pointed out the code in the vanilla stuff concerning this: if either of the rotor's limit values are set to more than plus-or-minus 2pi radians, that limit is treated as "Unlimited", and internally set to MIN_ or MAX_FLOAT. thus, setting the limit to ±361 is sufficient. would be nice to have "unlimited" as a keyword, though, for setting rotor limit angles