dynamically changing camera radius

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
pez
Posts: 4
Joined: Sun Jun 07, 2009 10:44 am

dynamically changing camera radius

Post by pez »

hey all, just a quick question, im making a game on the irrlicht engine that will make your brain fall off when you play it, and id like to create another strange effect for it.

say for instance you are in a plain room, and there is a small door about half the size of the cameras bounding ellipsoid. id like to create a point on the level that as you approach it the ellipsoid shrinks so you can fit through the door, and of course as you look back the original room looks bigger becaseu the camera is lower down.

coding the camera to react to a 'dynamic scale' node should be no problem. my question is (please forgive me if i havent looked hard enough :P) is there any way to alter the original bounding volume you pass to the collision responce animator at runtime?

thanks!
METOOOOOOOOOOOOOOOOAAAAAAAAAHL!
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

Read the documentation! You can add/remove the animators from camera, or change cameras, etc
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

answer his question instead of just saying read the documentation!


You can add/remove the animators from camera, or change cameras, etc has nothing to do with his question, which is..

is there any way to alter the original bounding volume you pass to the collision responce animator at runtime?

he already knows that he can kill the animator and then add another one, what he wants to know is if he can edit the existing animator instead. why even answer the post if all you are going to say is read the documentation?
DeM0nFiRe
Posts: 117
Joined: Thu Oct 16, 2008 11:59 pm

Post by DeM0nFiRe »

http://irrlicht.sourceforge.net/docu/cl ... 9467690d3f

You can use animator->setRadius(core::vector3df)
pez
Posts: 4
Joined: Sun Jun 07, 2009 10:44 am

Post by pez »

awesome thanks, i could see that you can attach and remove the collision response to the camera but i overlooked setEllipsoidRadius, just the function i need ty!
METOOOOOOOOOOOOOOOOAAAAAAAAAHL!
trivtn
Posts: 132
Joined: Tue Jan 17, 2006 12:30 pm
Location: Viet Nam
Contact:

Post by trivtn »

Don't drop the Animator if you want to change it in realtime.
(See the ISceneNodeAnimatorCollisionResponse in Doc)
There's something is fantastic, there's nothing is absolute.
Post Reply