ExSelection Exhibit::select(const Sphere &sph) const
{
- return ExSelection(0); // TODO
+ ExSelection sel;
+ if(collision_sphere_aabox(sph, get_aabox())) {
+ sel.ex = (Exhibit*)this;
+ sel.selsphere = sph;
+ sel.validmask = EXSEL_SPHERE;
+ }
+ return sel;
}
void Exhibit::update(float dt)