Search found 7 matches

by alpedar
Sat Feb 08, 2014 11:19 am
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Re: Enhancement: allow static query ignore sensor fixtures

I continued with my experiments. 1) managed to create subclass of DynamicAABBTree that ignores sensor-sensor overlap (and in my experimental scenario it provided huge speed up) (I tried both building tree of solid only AABB-s and of full, from these two building it from full AABBs and just adding in...
by alpedar
Sun Feb 02, 2014 5:17 am
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Re: Enhancement: allow static query ignore sensor fixtures

Thnaks. Interesting article, looks like I have lot to learn.
by alpedar
Sat Feb 01, 2014 6:26 pm
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Re: Enhancement: allow static query ignore sensor fixtures

1) After some reading of BroadPhase detector source I think that it is not possible for some implementations (they treat all collidables equally, there is not currently tested and node and others). I think that DynamicAABBTree maybe could be modified to do what i had in mind. // test each collidable...
by alpedar
Sat Feb 01, 2014 8:30 am
Forum: Bugs, Enhancements, Feedback
Topic: equals, hash code and comapreTo and others
Replies: 2
Views: 2513

equals, hash code and comapreTo and others

When peeking into source code, I noticed that Vector2 does not have its hashCode even though it has equals. Then I realized that it has equals(Vector), not equals(Object), so it is imo not strictly contract of equals-hashCode breach, but it is imo dangerous. I ran FindBugs on sources and found multi...
by alpedar
Sat Feb 01, 2014 7:58 am
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Re: Enhancement: allow static query ignore sensor fixtures

Some experimentation. I created world with bodies with two fixtures each, solid (sensor = false) = circle with r=1, and sensor = circle with r=1 or 40 (small and large). Randomly placed them in square 100 high and wide (so there will be a lot of overlaping of solid-sensor and even more of sensor-sen...
by alpedar
Fri Jan 31, 2014 2:29 pm
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Re: Enhancement: allow static query ignore sensor fixtures

I can add another method which could accept more parameters, maybe a boolean to check against sensors, and maybe a Filter object to test against the fixture's filters. I'll give some thought to what the parameters should be. As for modifying the broadphase, I wouldn't worry about skipping sensors i...
by alpedar
Sat Jan 25, 2014 11:44 am
Forum: Bugs, Enhancements, Feedback
Topic: Enhancement: allow static query ignore sensor fixtures
Replies: 13
Views: 8619

Enhancement: allow static query ignore sensor fixtures

I needed to check whether location is free before spawning new unit, so I tried to use detect(Convex) (or detect(Convex, Transform)), but because my units have sensor fixtures, I got collision with them. I could have iterate through returned list and check whether its nonsensor collision, but it see...

Go to advanced search