Search Instagram Twitter Facebook Spotify Grid Tag Date Folder Chat Pencil

Development Update – Object Pool Logic Water

Object pool logic is working.

Now working on the logic of the water itself. The important thing is that the water needs to be dynamic and respond to changes in the environment.

For example, take a look at this pic:

joSaT3u

The yellow/red blocks represent the stream of water. The blocks that are in red are colored this way because they are above “special ground”, ground that can move. The rest of the environment remains stationary, but the special ground can shift or destroyed.

As such, the red blocks need to react accordingly and break the stream of water if the ground below is destroyed, like this:

PAzziav

Right now, I have all the red blocks doing a raycast downwards to determine if there is ground below them. I don’t think I will have too many special grounds, so I don’t think this will be a big hit performance wise.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.