← Back to team overview

nrtb-core team mailing list archive

[Bug 1272733] [NEW] base_object::check_collision() should take an object pointer.

 

Public bug reported:

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.

** Affects: nrtb
     Importance: Critical
     Assignee: Rick Stovall (fpstovall)
         Status: In Progress

** Affects: nrtb/alpha
     Importance: Critical
     Assignee: Rick Stovall (fpstovall)
         Status: In Progress

** Branch linked: lp:~fpstovall/nrtb/fps-bugsfix-005

** Changed in: nrtb
   Importance: Undecided => Critical

** Changed in: nrtb
       Status: New => In Progress

** Changed in: nrtb
     Assignee: (unassigned) => Rick Stovall (fpstovall)

** Changed in: nrtb
    Milestone: None => sprint-005a

** Also affects: nrtb/alpha
   Importance: Critical
     Assignee: Rick Stovall (fpstovall)
       Status: In Progress

-- 
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:
  In Progress
Status in New Real Time Battle alpha series:
  In Progress

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


Follow ups

References