1
\$\begingroup\$

I have a rigid body with sphere shape attached and a static collidable box. When sphere hits the box at an angle, for some reason, the angle that it bounces off from is really small: https://imgpile.com/i/59FC34

I want to increase this angle somehow. What properties can I change in a rigid body to control this angle? NVIDIA PhysX allows changing interia, center of mass, mass, linear and angular dampening, restitution and friction (shape).

\$\endgroup\$
6
  • \$\begingroup\$ When you say "increase", which direction do you mean? Toward the surface or toward the normal? Try drawing a diagram showing your current angle of incidence and angle of reflection, and overlay it with the angle of reflection you'd prefer for the same incident angle. \$\endgroup\$ Commented Mar 23, 2022 at 13:52
  • \$\begingroup\$ Something like this? imgpile.com/i/5CgvTR \$\endgroup\$ Commented Mar 23, 2022 at 15:47
  • 1
    \$\begingroup\$ That looks like a symptom of friction being too great, so your ball loses some lateral speed by rubbing against the wall.. Though it's not obvious to me in your video that you're actually getting an angle as biased toward the normal as what's shown in the diagram. To my eye, it looks much closer to the expected angle of incidence = angle of reflection, it's just that the angle of incidence is quite steep so the reflection is steep to match. \$\endgroup\$ Commented Mar 23, 2022 at 15:56
  • \$\begingroup\$ Thank you i'll check it out and see if I can figure this out. I just wanted to use the physics system to simulate collision for a pong game but looks like I am going to need additional logic to fake some of the forces that come from the collision. \$\endgroup\$ Commented Mar 23, 2022 at 16:00
  • 1
    \$\begingroup\$ Be sure to post your solution as an Answer below. \$\endgroup\$ Commented Mar 24, 2022 at 19:28

1 Answer 1

2
\$\begingroup\$

After @DMGregory's suggestion, I started to play around with the friction. All the objects had both static and dynamic friction set to 1.0. So, I just set them to 0.0 to ensure that no energy was lost due to friction, which solved my problem. In order to improve collision even further, I also applied a bit of torque to the ball to make it roll.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.