Jiaoma / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Bug with segment query in space hash index #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
> What steps will reproduce the problem?
1. create space hash with celldim = 1.0
2. add vertical segment to space hash (-1.5, -1) - (-1.5, 1) (it matches its bb)
3. make segment query for segment (0, 0) - (-1.0, 0)
(minimal sample is attached)

> What is the expected output? What do you see instead?
Expected one call of callback function with inserted object.

> What version of the product are you using? On what operating system?
6.0, MacOS X (also reproducible with Marmalade SDK)

> Please provide any additional information below.
The issue in incorrect interpretation of temp_h == 0 in this case.

Also I attached the patch that fixes problem for me.

Original issue reported on code.google.com by spoli...@gmail.com on 20 Sep 2011 at 8:05

Attachments: