behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Static body creation does not wake up overlapping bodies #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a stationary dynamic body
2. Wait for it to sleep
3. Create a static body which intersects the first one

What is the expected output? What do you see instead?
I expect a contact to be generated, but no contacts are generated and the body 
does not wake up. 

What version of the product are you using? On what operating system?
Revision 197

Please provide any additional information below.
Making the bodies sensors or not has no effect. However, making the second body 
kinematic makes the problem go away. Another workaround is periodically 
resetting the velocity to prevent the first body from sleeping. 

Original issue reported on code.google.com by n2102410...@gmail.com on 8 Aug 2011 at 5:13

GoogleCodeExporter commented 9 years ago
Command: Commit  
Modified: D:\Development\Box2D\Box2D\Box2D\Dynamics\b2ContactManager.cpp  
Sending content: D:\Development\Box2D\Box2D\Box2D\Dynamics\b2ContactManager.cpp 

Completed: At revision: 204  

Original comment by erinca...@gmail.com on 23 Aug 2011 at 4:18