Skip to main content

Search

How do I temporarily enable gravity?

  • AndymationB

    Could you have the same setup connect to the movable switch of the object?

  • stobak

    '@AndymationB Thank you! Would you mind going into more detail as to what that would do? Still finding my way around so I appreciate the help.

  • AndymationB

    Sure. Making an object movable or not movable does exactly what it sounds like. Even with gravity turned off, a movable object is going to be subject to inertia or being bumped into by other things. With the movable object turned off, it should freeze in space (e.g. just like most blocks in minecraft).

    If you take the same logic setup you have now, and wire that [not gate] also into the movable switch (top item on the fifth page of a sculpt's tweak menu), I think it will work.

    I haven't tested this though, so some more debugging may be necessary. Please let me know how it works out.

    Andy

  • stobak

    '@Andy

    Just gave it a shot without any luck. I finally had some success with the setup that I have now (see image attached)

    I've tried running this through a blank node and it works as intended. when I move my puppet within proximity it turns on and when I move off it turns back off.

    When I tried running the same thing through 'ignore gravity' and through 'movable' it did not work. I've tried running this in test mode to try and debug what is happening. It seems that The ignore gravity switch is not working as intended during play mode. The switch appears to be on yet gravity continues to pull my object down. I'm not sure if this is a bug or if I'm missing something, but I'm open to any other ideas.

  • stobak

    So after doing some tinkering, turns out I was overcomplicating this quite a bit. Simply running a wire from the output of my wireless receiver and into the "movable" switch of the object seemed to give me the desired results.

    I also did some more tests messing with the "ignore gravity" switch, and so far I can confirm that once that switch is turned off during gameplay it cannot be turned back on. Even if it appears to turn back on, gravity will still exert influence on the object. I'm not really sure if this is a bug, but just thought I'd call it out.

    Thanks for the assistance @AndymationB

  • AndymationB

    No problem. I'm glad it worked out!

    I would make a new thread in the bugs section and mention that thing about the ignore gravity switch. They may not see it here, and it sounds like it's worth checking out.

Please sign in to leave a comment.