nrtb-core team mailing list archive
-
nrtb-core team
-
Mailing list archive
-
Message #00583
[Bug 1272733] Re: base_object::check_collision() should take an object pointer.
Fixed... found an additional issue where the method was returning an
inverted truth table (discovered during unit test).
** Changed in: nrtb/alpha
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of NRTB
Core, which is subscribed to New Real Time Battle.
https://bugs.launchpad.net/bugs/1272733
Title:
base_object::check_collision() should take an object pointer.
Status in The New Real Time Battle Project:
Fix Committed
Status in New Real Time Battle alpha series:
Fix Committed
Bug description:
in /cpp/sim_engine/base_object/base_object.[h|cpp] :
bool base_object::check_collision(sphere s)
{
float r = s.radius + bounding_sphere.radius;
return r <=
s.center.range(bounding_sphere.center+location);
};
This method should take an object_p (a pointer to an object) instead
of a sphere; this will greatly simplify collision checks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nrtb/+bug/1272733/+subscriptions
References