OfficerYoda / Fhysics

A Physics simulation
MIT License
0 stars 0 forks source link

Rectangle Second contact point only sometimes #52

Closed OfficerYoda closed 2 months ago

OfficerYoda commented 4 months ago

Sometimes on a rectangle collision it only registers one contact point although it should register two.

How to recreate

Drop a 1x1 rectangle from a small height on a 30° slope. This should recreate the events of the picture below.

image

OfficerYoda commented 4 months ago

This causes the small rectangle to experience the same loop of friction over and over again:

  1. Static friction at both points
  2. Dynamic friction at the first point (second point doesn't have conntact anymore)
  3. Dynamic friction at the first point but with a magnitute between the magnitutes at 1. and 2. with 2. having the biggest magnitute
OfficerYoda commented 4 months ago

This phenomenon of a slight extra angle (like here where the small rectangle doesn't have a perfect 30 degree angle) can also be observed in Issue #62.