Profile image

I need help with making a custom rotary cannon

6 FeistyPapa  4.6 years ago

I’m trying to make a rotator rotate only when I shoot my cannons and stop when I let go. I can’t figure out how to do this. The closest I got I setting the input to FireWeapons but it keeps rotating.

  • Log in to leave a comment
  • Profile image

    @FeistyPapa
    Good.

    4.5 years ago
  • Profile image

    @ArcturusAerospace I plan to use it on a heavy ground attack plane so it shouldn’t be much of an issue

    4.5 years ago
  • Profile image

    @FeistyPapa
    Then you should make the base have more mass than the spinning part.

    +1 4.5 years ago
  • Profile image

    @ArcturusAerospace I think I tried a similar project like this except I used wing guns. From what I remember, setting the mass scale to 0 does nothing.

    4.5 years ago
  • Profile image

    @SnoWFLakE0s it’s the latest game version on IOS. I probably screwed something up.

    4.5 years ago
  • Profile image
    67.1k SnoWFLakE0s

    @FeistyPapa
    .
    I have no idea what you've done wrong, then. It works perfectly for everyone else I know and for myself... I'm not sure if I can help you any more at this point. Game version?

    4.6 years ago
  • Profile image

    @FeistyPapa
    Set the mass on the spinning end to 0.

    4.6 years ago
  • Profile image

    @SnoWFLakE0s
    I have the rotator speed at 2x because any more than that and my test rig flips from the torque. I set the min and max to very low and high numbers if that helps. And the code you just sent me also isn’t working.

    +1 4.6 years ago
  • Profile image
    67.1k SnoWFLakE0s

    @FeistyPapa
    .
    It is specifically designed not to do that. Have you set the speed high enough? Also, upon further consideration the following code is simpler and should work (works on my end).

    smooth(pow(10,10), clamp01(FireWeapons))

    Regarding your concern, it is only an relevant application of preexisting concepts. In this case the irreversible boolean activation concept is used without the concept of "activation", merely using the irreversible boolean section of the code.

    +1 4.6 years ago
  • Profile image

    @SnoWFLakE0s I’m getting a problem with your code. The rotator keeps spinning after I let go of the firing button. I saw your vehicle with the code though. Very nice but it’s not what I’m looking for.

    4.6 years ago
  • Profile image
    67.1k SnoWFLakE0s

    For your reference...
    The below is an application of this concept
    For more information please visit snowflake0s.github.io

    +1 4.6 years ago
  • Profile image

    @SnoWFLakE0s Thanks so much!

    4.6 years ago
  • Profile image
    67.1k SnoWFLakE0s

    smooth(FireWeapons*pow(10,10), clamp01(FireWeapons))

    +2 4.6 years ago