How do I temporarily enable gravity?
The intention is to have a player controlled puppet deactivate the "ignore gravity" switch in objects that are within a certain proximity to it. I've gotten this to work by attaching a trigger zone to the puppet that deactivates the "ignore gravity" switch in the object when it's within proximity. This seems to work fine for now. The object begins to fall downward when "ignore gravity" is triggered.
However, I'd like the object to also STOP falling once my puppet is no longer in proximity. Anyone have any ideas on how to solve that? My logic/wire setup is as follows:
In the puppet
Trigger zone --> Wireless Transmitter
In the object
Wireless Receiver --> Not Gate --> Ignore Gravity
Thanks in advance!
-
Could you have the same setup connect to the movable switch of the object?
-
'@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.
-
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 -
'@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. -
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 -
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.