CangoJoe Posted September 12, 2018 Posted September 12, 2018 Heyas, So I'm making this simple pachinko game. The basic gameplay is that balls will fall down hitting pins and occasionally triggering scoring areas that award more balls. All the balls and pins are CSGs with, Physics Mode: Rigid Body and Collision type: Prop. Right now the balls fall, hit the pins and simply roll off. Is there a way to adjust the physics properties of the pins and/or balls to get the balls to bounce a bit more when they hit the pins? Or perhaps the change the gravity of the balls? Thanks in advance! -can Quote
SpiderPig Posted September 12, 2018 Posted September 12, 2018 Hi, what mass are you giving the balls? Quote
CangoJoe Posted September 12, 2018 Author Posted September 12, 2018 Right now it's 20. I haven't really seen much difference between 1 and 20. Perhaps a different collision type? Quote
SpiderPig Posted September 12, 2018 Posted September 12, 2018 Ridged Body should be okay for mode. The type won't change any physics properties, it's just a way of identifying different objects. If you could show small animation of what you have it might help. You may need to change friction values and lower the mass. 1 Quote
CangoJoe Posted September 12, 2018 Author Posted September 12, 2018 12 hours ago, SpiderPig said: You may need to change friction values and lower the mass. Seems using decimal mass values less than 1 improved the bounciness of the balls. I adjusted the value to .1 and the balls bounce around more instead of dropping like lead weights. I'll spare you the animation for now and post the game when its in a playable state. Thanks for your help! Quote
Josh Posted September 13, 2018 Posted September 13, 2018 Try entity->SetElasticity(2.0); //experiment with this value 3 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
CangoJoe Posted September 13, 2018 Author Posted September 13, 2018 3 hours ago, Josh said: Try entity->SetElasticity(2.0); //experiment with this value Wow that worked out better than I expected! They're bouncing around like Mexican jumping beans now. Just need to find the best value now. Thanks for pointing that property out 3 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.