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.
Ohh ohh, where's the floor?
-
GimmeCake
Ohh ohh, where's the floor?
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.
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.
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!
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