Jump to content

Recommended Posts

Posted

Heyas,

So I'm making this simple pachinko game.

pachinko.thumb.jpg.876770b77b3a40432e0af970ea9a4735.jpg

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

 

Posted

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.

  • Thanks 1
Posted
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!

Posted
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 :)

  • Like 3
  • Upvote 1

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...