Moving while not affected by gravity
MattVollet
Member Posts: 86
I have a collectable actor that I want to be rotating but the only way I understand to get it to not be affected by gravity is to make it non-movable (which makes it not able to rotate, obviously). How else can I tackle this issue?
Comments
In the meantime, you need to apply a constant acceleration to that object in the up direction.
Also, something to think about, if there is only one actor in your game that is affected by gravity - like the ball in a pinball game - you might want to consider turning gravity off and only applying a constant acceleration in the down direction for that actor.
Also, thank you also for publishing all those demos and tutorials. I just started GS about a week ago and am working on a lofty-platform project that would be 1000Xs more difficult without the reference to a lot of your work.
Thanks again,
Matt
I haven't tried this but what if you create an invisible actor (say "CollectibleAnchor") making it non-moveable and place it where you want collectibles. Then have the actual viewable collectible actor placed where they are and constrain each to the underlying invisible actor. This would increase the actor count quite a bit as each is unique.
The animation would work as well, but taking gravity off was probably the laziest solution, so I took that (3 cheers for lazy.)
Thanks for everyones help!