How to avoid character/mob fall below terrain?

Modified on Wed, 01 Jul 2020 at 04:40 PM

There're a few situations where your character or some other mob fall under the terrain:


1) Voxel Play environment has not finished creating the initial terrain.

Solution: wait until Voxel Play finish initialization using the event OnInitialized or check the flag env.initialized.


2) The chunk below the mob is not yet rendered (collider is missing).

Solution: check if the chunk is ready at the mob position with GetChunk(position) method.


3) Mob still fall under terrain sometimes:

Solution: add Voxel Play Behaviour component to your mob and enable the option "forceUnstuck". It's also recommended to enable the "Check Chunk Area" option.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article