Discussion: What do you preffer for Gravity? Scene.gravity? create the "gravity" in the actor?
DuendeArkano
Member Posts: 52
Just wondering pros and cons of using the scene.gravity
or create some acceleration rules over the actor to create this "gravity"
What do you preffer people? why?
Im using the scene.gravity but i want to read your experienced comments about it
Thanks a lot in advance
or create some acceleration rules over the actor to create this "gravity"
What do you preffer people? why?
Im using the scene.gravity but i want to read your experienced comments about it
Thanks a lot in advance
Comments
Take for example if you have a balloon actor, and you want it to slowly rise in the air. If you had scene gravity, you would also have to have some sort of move behavior in the balloon that counteracts the gravity, so you basically have 2 physics behaviors fighting it out with the processor constantly, and that can make jittery movement, and is counter productive as fas as scripting is concerned. It would just be easier to have 1 accelerate/move behavior that slowly makes the balloon rise.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thanks again guys