5 ExSelection ExSelection::null;
9 ExSelection::ExSelection(Exhibit *ex)
16 ExSelection::operator bool() const
43 void Exhibit::set_node(SceneNode *node)
46 orig_parent = node->get_parent();
49 ExSelection Exhibit::select(const Ray &ray) const
53 if(get_aabox().intersect(ray, &hit)) {
54 sel.ex = (Exhibit*)this;
57 sel.validmask = EXSEL_RAY;
62 ExSelection Exhibit::select(const Sphere &sph) const
65 if(collision_sphere_aabox(sph, get_aabox())) {
66 sel.ex = (Exhibit*)this;
68 sel.validmask = EXSEL_SPHERE;
73 void Exhibit::update(float dt)
77 const AABox &Exhibit::get_aabox() const
79 aabb = node->get_bounds();