Frictional Games Forum (read-only)
Collision with liquid - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Collision with liquid (/thread-14408.html)



Collision with liquid - Mackiiboy - 04-01-2012

I have been bug testing my map and encountered some interesting phenomena with liquid. Some entities that collides with liquid, bounces up and down for an eternity like the first image. Some entities, for example a dead pig, freaks out totally, flying around in the air and changing its shape like the second image.


[Image: DZRCw2jDZ3BnZfBb500FUu9b.png]

[Image: 0QMTiMDpOI4xRlORU8XNgh4.png]

Since this is not kinda realistic, I am trying to get rid of this problem. I know that some entities does not have this behavior, like barrels etc. The question is which settings entities that works good with liquid has.
If you know, please make a comment. Otherwise I can just remove the liquid-areas to get rid of the problem. Shy



RE: Collision with liquid - zombiehacker595 - 04-01-2012

after looking at that pig i would say just get rid of the water lol Smile


RE: Collision with liquid - flamez3 - 04-01-2012

You could just put a block_box over it

Entites-> technical-> block box.


RE: Collision with liquid - Datguy5 - 04-01-2012

(04-01-2012, 12:12 PM)flamez3 Wrote: You could just put a block_box over it

Entites-> technical-> block box.
I was thinking exactly that same D: But then you ninjad me : (



RE: Collision with liquid - Mackiiboy - 04-01-2012

(04-01-2012, 12:12 PM)flamez3 Wrote: You could just put a block_box over it

Entites-> technical-> block box.
.
What will the block_box do?
I tried one and it does not seem to affect entities at all, just the player. A block_box_nonchar however, blocks both the player and entities, but then the entities wont be able to collide with the liquid at all which was not exactly what I was looking for, then it would be easier to select the collide-box [] on the waterplane.
If I have done something wrong with the block_boxes, please tell me.

If you check an article about the Entity Preview window @ Frictional Games Wiki, ya'll see that it's possible to check how an entity behaves in liquid in the ModelEditor. I tried to use the same settings as for a barrel for some entities with the preview mode, but they did not get any "good" behavior, they continued to bounce up and down. So, the thing I want to do is make it possible to make an entity to either sink or float when it collides with liquid, not bounce. I can't understand why the barrel works so good, but I will continue with the ModelEditor 'till I find out something or if you come up with something cool Shy .





RE: Collision with liquid - Khyrpa - 04-01-2012

you can change the settings of the liquid area in level editor too. Like setting the wave intensity to low. Play around with the settings, it could fix the problem with some entities.



RE: Collision with liquid - Mackiiboy - 04-01-2012

(04-01-2012, 04:54 PM)Khyrpa Wrote: you can change the settings of the liquid area in level editor too. Like setting the wave intensity to low. Play around with the settings, it could fix the problem with some entities.
.
I'll try that, thanks Shy