justnajm / physaxe

Automatically exported from code.google.com/p/physaxe
0 stars 0 forks source link

Fast-moving objects fall through boundaries #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an object that will be moving very quickly across a different object.
2. Run.

What is the expected output? What do you see instead?
The fast-moving object will skip over the boundaries of the other object,
rather than bouncing off.

What version of the product are you using? On what operating system?
1.1, haXe 2.0.1 on Linux in Flash.

Please provide any additional information below.
This causes problems when moving objects happen to fall through boundaries
of others, I believe. It may only happen with circles? See the attached demo.

Original issue reported on code.google.com by andy.sch...@gmail.com on 9 Dec 2008 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
This problem does not exist only with circles, I was able to recreate it using 
10x10
squares as well.

Original comment by andy.sch...@gmail.com on 9 Dec 2008 at 7:05

GoogleCodeExporter commented 9 years ago
I've never looked at the source.  Is there any sort of multi-sampling in 
physaxe to
try to prevent this?

Original comment by nbi...@gmail.com on 30 Jan 2009 at 5:57

GoogleCodeExporter commented 9 years ago
When I last checked, I couldn't find any. Then again, I'm not terribly familiar 
with
Physaxe's source, nor the applications it's based on, so I may have missed it.

Original comment by andy.sch...@gmail.com on 30 Jan 2009 at 6:10

GoogleCodeExporter commented 9 years ago
Fast moving objects are called "bullets" in Box2D. You need continuous collision
detection (CCD) to know at which time the next collision will occur or else you 
can
have the objects go past each others.

Since there is no CCD in physaxe right now, you can either maximize the speed 
of your
object (by setting body.properties.maxMotion) or/and ensure that you make 
several
world.step with lower time increment.

Original comment by ncanna...@gmail.com on 5 Feb 2009 at 3:35

GoogleCodeExporter commented 9 years ago

Original comment by ncanna...@gmail.com on 5 Feb 2009 at 3:35

GoogleCodeExporter commented 9 years ago
Any idea when will there be CCD in Physaxe?

Original comment by marc...@gmail.com on 25 Feb 2010 at 2:21