cammera bounding box

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lord_kraig
Posts: 6
Joined: Tue Oct 18, 2011 10:23 am

cammera bounding box

Post by lord_kraig »

im trying to create a basic game where you collide with a box and the box dissapears but ive got the code for the map, the collision but so far it collides with the map and ive since learnd of a cammera bounding box but days of searching have come up with nothing so i could use some info on what a bounding box is and how its created.
onesixtyfourth
Posts: 21
Joined: Mon Nov 03, 2008 10:18 am

Re: cammera bounding box

Post by onesixtyfourth »

aabbox needs to created that tracks the camera position.
Glasys
Noli illegitimi carborundum
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: cammera bounding box

Post by CuteAlien »

Yeah, a camera is just a position (and has a view frustum - the area you can see). So if you want a box-collision you can add a scenenode with a box to the camera and use that for the collision. Or if an ellipsoid is also fine you can work with ISceneNodeAnimatorCollisionResponse.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
lord_kraig
Posts: 6
Joined: Tue Oct 18, 2011 10:23 am

Re: cammera bounding box

Post by lord_kraig »

thanks this was very helpfull
Post Reply