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.
floppyfreak
Posts: 117 Joined: Sat Apr 19, 2008 10:14 am
Post
by floppyfreak » Tue Jan 12, 2010 12:03 pm
I use a collisionResponse like this one:
Code: Select all
ptColResAni=irrSceneMgr->createCollisionResponseAnimator(
msel, TELLtecam, core::vector3df(4,1,1.1),
core::vector3df(0,0,0),
core::vector3df(0,0,0));
now I want the ellipsiod to rotate together with my cam, but it doesn't happen. When I rotate at a wall, the closest distance to the wall will not change. Is the reason for this somewhere in my code or is it a irrlicht feature?
How can I make a collision body that changes with my rotation?
PI
Posts: 176 Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary
Post
by PI » Wed Jan 13, 2010 11:32 am
Hehehe! Google it up how funny this is! That's why I won't implement rotating ellipsoids into FC.
floppyfreak
Posts: 117 Joined: Sat Apr 19, 2008 10:14 am
Post
by floppyfreak » Wed Jan 13, 2010 2:24 pm
PI wrote: Hehehe! Google it up how funny this is!
Sorry, I can't see the fun in it
PI
Posts: 176 Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary
Post
by PI » Wed Jan 13, 2010 2:57 pm
It's complexity doesn't worth the effort. Probably you'd have a solution that's too slow for regular use.
floppyfreak
Posts: 117 Joined: Sat Apr 19, 2008 10:14 am
Post
by floppyfreak » Wed Jan 13, 2010 3:55 pm
PI wrote: It's complexity doesn't worth the effort. Probably you'd have a solution that's too slow for regular use.
So I guess what should be done is a two- step solution? Find the nearby- collisions with ellipsoid and if true check for precise collisions ?!
PI
Posts: 176 Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary
Post
by PI » Wed Jan 13, 2010 8:27 pm
Well, I guess it would be more than just two steps.
I have some ideas for workarounds, but it all depends: what do you want to archieve?
floppyfreak
Posts: 117 Joined: Sat Apr 19, 2008 10:14 am
Post
by floppyfreak » Thu Jan 14, 2010 6:21 pm
I have a flying object that is more flat then thick an it shall get closed to walls (also ceilings etc) without flying into walls. That simple for the moment.
PI
Posts: 176 Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary
Post
by PI » Fri Jan 15, 2010 8:53 pm
The easiest is to use an UFO-shape for this.