AABBs with Irrlicht Scene Nodes

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

AABBs with Irrlicht Scene Nodes

Post by Halifax »

Well, I was just wondering, a very n00b question, but are the scene node bounding boxes recalculated every time you transform the node?
TheQuestion = 2B || !2B
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

No, the box returned by getBoundingBox is an axis aligned bounding box, meaning they are relative to the transformation of the node. The transformed bounding box is transformed into world space every time it is requested, so this method is quite slow. See ISceneNode.h
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Ah, okay, thanks bitplane. Yeah, I wasn't exactly sure where to look at first. I guess I should have known ISceneNode. :oops:
TheQuestion = 2B || !2B
Post Reply