# Overlapping Physics

**URL:** <https://forums.solar2d.com/t/overlapping-physics/349772>\
**Category:** Physics\
**Created:** [April 19, 2019, 1:09pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772 "2019-04-19T13:09:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scuba\_games](https://forums.solar2d.com/user_avatar/forums.solar2d.com/scuba_games/32/246_2.png) [@scuba\_games](https://forums.solar2d.com/u/scuba_games)\
**Post date:** [April 19, 2019, 1:09pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772/1 "2019-04-19T13:09:58Z")

</div>

I have some objects with physics that work fine, until something pushes them.&nbsp;

Then they overlap, see attached.

Any thoughts?

```
if shape == 0 then tphy = {density=0.005, friction=1, bounce=0.42, radius = (dr/2) + 1, isBullet=true } elseif shape == 1 then tphy = {density=0.001, friction=1, bounce=0.42} end
```

---

<div class="post-metadata">

**Author:** ![XeduR](https://forums.solar2d.com/user_avatar/forums.solar2d.com/xedur/32/256_2.png) [@XeduR](https://forums.solar2d.com/u/XeduR)\
**Post date:** [April 19, 2019, 1:29pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772/2 "2019-04-19T13:29:41Z")

</div>

The value for density is low, but you haven’t really posted enough code for anyone to debug your issue. Try posting enough so that your issue can be replicated by your code.

---

<div class="post-metadata">

**Author:** ![scuba\_games](https://forums.solar2d.com/user_avatar/forums.solar2d.com/scuba_games/32/246_2.png) [@scuba\_games](https://forums.solar2d.com/u/scuba_games)\
**Post date:** [April 19, 2019, 2:06pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772/3 "2019-04-19T14:06:04Z")

</div>

[quote name=“XeduR @Spyric” post=“397278” timestamp=“1555680581”]The value for density is low, but you haven’t really posted enough code for anyone to debug your issue. Try posting enough so that your issue can be replicated by your code.[/quote] Thank you, I will. I have made so many adjustments, trying so many different things. My thought was if the item weighed almost nothing, it would push the other one out of the way. I’ve tried it both ways, very heavy, and very light. I’ll revise this thread with more detailed code.

---

<div class="post-metadata">

**Author:** ![XeduR](https://forums.solar2d.com/user_avatar/forums.solar2d.com/xedur/32/256_2.png) [@XeduR](https://forums.solar2d.com/u/XeduR)\
**Post date:** [April 19, 2019, 1:29pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772/4 "2019-04-19T13:29:41Z")

</div>

The value for density is low, but you haven’t really posted enough code for anyone to debug your issue. Try posting enough so that your issue can be replicated by your code.

---

<div class="post-metadata">

**Author:** ![scuba\_games](https://forums.solar2d.com/user_avatar/forums.solar2d.com/scuba_games/32/246_2.png) [@scuba\_games](https://forums.solar2d.com/u/scuba_games)\
**Post date:** [April 19, 2019, 2:06pm UTC](https://forums.solar2d.com/t/overlapping-physics/349772/5 "2019-04-19T14:06:04Z")

</div>

[quote name=“XeduR @Spyric” post=“397278” timestamp=“1555680581”]The value for density is low, but you haven’t really posted enough code for anyone to debug your issue. Try posting enough so that your issue can be replicated by your code.[/quote] Thank you, I will. I have made so many adjustments, trying so many different things. My thought was if the item weighed almost nothing, it would push the other one out of the way. I’ve tried it both ways, very heavy, and very light. I’ll revise this thread with more detailed code.
