Author Topic: Why are some collisions \"sticky\"  (Read 116 times)

Zachary Foley   «   on: April 27, 2012, 08:31:19 PM »
I am using a sphere collision and I am getting inconsistent results. For some reason some objects it collide with it "slides" off of them, but other objects it is as if the the object is "sticky" and it absorbs all movement and momentum of the colliding object. 

Is there a setting flag or anything that would explain this? Is it somethign I amd doing in how the objects are modeled?

For example: Here are two examples, the road my object goes down is a U shaped object and it collides every update. It is "slippery". But sometimes boxes in the road are "Sticky" in that even if the sphere collides obliquely with the object, all momentum stops.

Ivan Vodopiviz   «   Reply #1 on: May 02, 2012, 11:14:03 AM »
Hi Zachary,

What collision method are you using? There are three ways to evaluate collisions: SphereCollision.slider(), SphereCollision.fixed() and SphereCollision.intersect().

Slider will make the colliding object to er... slide, following the other object's surface. Fixed will completely stop the object as soon as a collision is detected and Intersect won't change the movement at all and will only notify when the two object intersect with each other.

Zachary Foley   «   Reply #2 on: May 02, 2012, 07:54:03 PM »
I was using slider(10). And the only fix we could find was to makethe object the collision colldies with a certain height. If it was above or below this height, the object was "sticky".