Entity within entity touching
How does this happen? One entity is solid_trigger, other solid_bbox. Trigger one is large cube. What I need is that bbox one can't leave this trigger area. So I was thinking of touch, when does touch triggers - when it touches the sides or all the time when inside?
|
Re: Entity within entity touching
in theory, all the time inside
an entity is not a box, it's a full cube |
Re: Entity within entity touching
Can you explain a bit more ??
Not able to understand you what exactly you are trying to do.. BTW this code detects if Entity1's origin is inside the Entity2 Cube, hopefully this helps you PHP Code:
|
Re: Entity within entity touching
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 */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. |
Re: Entity within entity touching
Quote:
Thanks for answer, will test it. I just wanted to know more before starting to work on. |
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.