Ohh ohh, where's the floor?

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
GimmeCake

Ohh ohh, where's the floor?

Post by GimmeCake »

How do I find out the "Y position of the floor" in an bsp map :?:
I was thinking about using collision detection instead to make a guy go on the floor but I think it would take alot of cpu, but frankly I don't know much about it. :?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

assuming you're already doing collision detection with the floor while the guy is standing, you can simply take his current position and figure out where the bottom of his bounding box is-- that is the 'Y' position of whatever he is standing on.

however, you should still project a box to where he would end up-- cause if you're standing next to a wall facing away from it, and go prone without collision detection, your legs will stick out the wall!
a screen cap is worth 0x100000 DWORDS
Post Reply