2 registered members (AndrewAMD, juanex),
1,247
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
strange one-way collision
#445089
08/27/14 18:34
08/27/14 18:34
|
Joined: Sep 2003
Posts: 733 Whitefish, Montana
JazzDude
OP
User
|
OP
User
Joined: Sep 2003
Posts: 733
Whitefish, Montana
|
I have an invisible collision barrier that allows the player to walk thru in one direction but not return. I can't find any reason for it in the level. There is nothing hidden or obvious that is in the area. Hitting F11 doesn't show any collision boundaries. I have tried countless things rebuilding the level but have had no results. Any ideas?
PROBLEM SOLVED
Last edited by JazzDude; 08/27/14 21:12.
|
|
|
Re: strange one-way collision
[Re: JazzDude]
#445109
08/27/14 21:23
08/27/14 21:23
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
Anyway, glad u could fix/find this bug. a bad one, might take some hours to find ^^ maybe this could be intresting (?): ... If IGNORE_CONTENT is not set, a precise collision is done with all nearby passable map and terrain entities, no matter whether IGNORE_MAPS, IGNORE_PASSENT or IGNORE_WORLD is set. At this point in_passable, on_passable and passable_ent are updated to point to the current entity if the trace starting point lies within the entity's axis-aligned bounding box. For terrains the bounding box is assumed to extend all the way down to the bottom of the level. If there is no passable entity at the starting point, but one can be found along the trace line, then passable_ent will be set to this one instead and on_passable gets set as well.
Once all entities have been processed in this way the level blocks get checked. To disable this check IGNORE_WORLD needs to be set.
When this is done a thorough (i.e. slow) test is performed between the requested bounding shapes (ray, polygons, OBB, or ellipsoid). All intersections are stored and sorted by distance from the trace origin. At this point contacts with pushable and passable entities are discarded. The closest hit (if any) is returned.
edit: moved 2 "Starting with Gamestudio" ( collision - problem in general ) Greets
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|