Raised This Month: $ Target: $400
 0% 

Entity within entity touching


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-06-2014 , 07:36   Re: Entity within entity touching
Reply With Quote #4

I think he is trying to make a solid entity not be able to leave a trigger entity. So he was asking if touch forward between these 2 entities is called every frame while solid entity is inside trigger one, or is it just called when they collide their bounding box edges.
I guess it is just on edges, because this is the SOLID_TRIGGER description:
Code:
#define	SOLID_TRIGGER		1		/* touch on edge, but not blocking */
So, you may detect their touch and just put your solid entity inside trigger one again.
Although you could test it by moving your entity inside a trigger entity and print out a message on every touch forward call, then move it in a way that only their edges will be touching.

Last edited by klippy; 07-06-2014 at 07:38.
klippy is offline
 



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 21:14.


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