Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Overlapping Physics
Started by scuba_games Apr 19 2019 05:09 AM

2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

scuba_games

[GLOBAL: userInfoPane.html]
scuba_games
  • Observer

  • 20 posts
  • Corona SDK

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

 

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


[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 838 posts
  • Corona SDK

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.



[TOPIC: post.html]
#3

scuba_games

[GLOBAL: userInfoPane.html]
scuba_games
  • Observer

  • 20 posts
  • Corona SDK

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.


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.


[topic_controls]
[/topic_controls]