base_object::check_collision() should take an object pointer.
Bug #1272733 reported by
Rick Stovall
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
New Real Time Battle | Status tracked in Alpha | |||||
Alpha |
Fix Released
|
Critical
|
Rick Stovall |
Bug Description
in /cpp/sim_
bool base_object:
{
float r = s.radius + bounding_
return r <=
s.center.
};
This method should take an object_p (a pointer to an object) instead of a sphere; this will greatly simplify collision checks.
Related branches
lp:~fpstovall/nrtb/fps-bugsfix-005
- Rick Stovall: Approve (code)
-
Diff: 121 lines (+57/-9)3 files modifiedcpp/sim_engine/base_object/base_object.cpp (+7/-6)
cpp/sim_engine/base_object/base_object.h (+4/-1)
cpp/sim_engine/base_object/base_object_test.cpp (+46/-2)
Changed in nrtb: | |
importance: | Undecided → Critical |
status: | New → In Progress |
assignee: | nobody → Rick Stovall (fpstovall) |
milestone: | none → sprint-005a |
To post a comment you must log in.
Fixed... found an additional issue where the method was returning an inverted truth table (discovered during unit test).