Raised This Month: $ Target: $400
 0% 

How to check if a bouncing entity has a collision with the floor (not the walls) ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-05-2010 , 13:27   How to check if a bouncing entity has a collision with the floor (not the walls) ?
Reply With Quote #1

How can I do that?

I tried with FL_ONGROUND but it doesn't work with MOVETYPE_BOUNCE.
__________________
<VeCo> is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-05-2010 , 14:01   Re: How to check if a bouncing entity has a collision with the floor (not the walls)
Reply With Quote #2

You could do a traceline from the entity downward, but this may not be 100% accurate because the entity might be touching on an edge.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode