Except that a bomb doesn't trigger any event when it's triggered, which is the main reason why tracking a bomb is not reliable. The rest is just simple linear stuff.
Samapico - Thu Jul 01, 2010 10:06 pm
Post subject:
uber bump...
Nothing yet?
Goldeye - Thu Jul 01, 2010 10:31 pm
Post subject:
Ooh, interest!
I'll see about getting it here tomorrow
Goldeye - Sat Jul 03, 2010 7:17 pm
Post subject:
Done. See first post.
Samapico - Sun Feb 27, 2011 10:48 pm
Post subject:
8 months later: I'm finally getting around to using this...
I plan to use it for 2 things for now:
-Detect an actual shot towards the goal vs a simple pass or a missed shot
-Detect when the ball hits the post
The first one is simple, since I can call the function when the ball is thrown.
However, I'm not sure how to do the second one... I can use BallBounce(...) to know if the ball should eventually hit the post, but is there some way to get a callback when it does hit the post? Or do I need to start a timer, and make sure no one touches it while the timer counts down?
Goldeye - Sun Feb 27, 2011 11:08 pm
Post subject:
I wrote a module that can do both of those (with one function).
Will try to bring it out sometime soon.
Goldeye - Sat Mar 12, 2011 5:10 pm
Post subject:
Ball motion is that module...
You'd use GoalTime to detect if it will hit the net, and either RegionIntersect or LineIntersect (depending on which angles you want to check) for the post.
The IntersectData returned by either function should contain a time of 0 to indicate no intersect at all.
There are potentially physics errors in this module. Or they might be in our modules using this one. Not sure
PS. Bomb tracking shouldn't be that hard...
Anonymous - Sun Apr 03, 2011 8:43 pm
Post subject:
Does this don't have a python interface? When I try load it, it says there isn't. Would you be willing to add it?
Goldeye - Sun Apr 03, 2011 10:08 pm
Post subject:
It's tricky to make a python interface because of the data structures.
If someone's very familiar with pyint, maybe they're willing to take a shot at this?
It'll be a long long time before I can work on it.
However, if you describe your exact use, I may be able to make 'wrapper' functions that just return ints.