+
+ /*!
+ * Returns the selection box of the object.
+ * This box is not translated when the
+ * object moves.
+ * The box's coordinates are world coordinates.
+ * @returns true if the object has a selection box.
+ */
+ virtual bool getSelectionBox(aabb3f *toset) const = 0;
+
+
+ virtual bool collideWithObjects() const = 0;
+
+
+ virtual void setAttachment(int parent_id, const std::string &bone, v3f position,
+ v3f rotation, bool force_visible) {}
+ virtual void getAttachment(int *parent_id, std::string *bone, v3f *position,
+ v3f *rotation, bool *force_visible) const {}
+ virtual void clearChildAttachments() {}
+ virtual void clearParentAttachment() {}
+ virtual void addAttachmentChild(int child_id) {}
+ virtual void removeAttachmentChild(int child_id) {}