cammera bounding box
-
- Posts: 6
- Joined: Tue Oct 18, 2011 10:23 am
cammera bounding box
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.
-
- Posts: 21
- Joined: Mon Nov 03, 2008 10:18 am
Re: cammera bounding box
aabbox needs to created that tracks the camera position.
Glasys
Noli illegitimi carborundum
Noli illegitimi carborundum
Re: cammera bounding box
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 6
- Joined: Tue Oct 18, 2011 10:23 am
Re: cammera bounding box
thanks this was very helpfull