Physics Query... How To Make A Marble React When Encountering A Trampoline, Sand Pit, Water Tank
rainwaterstudios
Member Posts: 198
I'm working on a game where you move, swing, push, drop, toss etc. a marble around the scene to reach the goal.
What is the best way to make a trampoline? Sand pit?
I need to know how to make the marble react to dropping into a fish tank full of water, hopefully there is some way to make an impact splash...
@Socks @The_Gamesalad_Guru I'm betting one of you'd know how I could go about doing this
Comments
You can use the Physics options to get some of the effects you mention. In the sample attached the blue shape acts as a bouncy trampoline and the tan shape as sand. Click on the screen to spawn a marble.
This sample only uses the Bounciness setting, you have lots of other options (drag, friction, density, etc.) you can play with to get just the right feeling for you project.
To get a splash impact you'll either need to animate that or use particle effects.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page