Using One Sided Collision
How to enable and use one way collision with SBBTV
Last updated
How to enable and use one way collision with SBBTV
Last updated
Both active and passive blocking volumes can make use of one way collision, allowing the collision to be triggered when the player attempts to pass through the volume from one side to another. This can be useful in a number of ways, such as allowing your player to get back into the playable area if they somehow end up outside it, but not easily leave the playable area, or creating zones where the player cannot backtrack.
Please note that One Sided Collision requires that you have completed Configuring Actors for Trigger Interactions on any actors you wish to block, as it is actually an overlap even that acts as a block event.
Enabling one sided collision is very simple. Simply set the One Sided Collision setting to true on your SBBTV actor.
Should you find that you want the collision on the opposite side of the volume, enable the setting Invert Collision.
While working in the editor, the direction of collision flow can be viewed by enabling the editor setting Show Collision Direction on the actor. This only impacts the actor in the editor and will have no impact at runtime.
Once enabled, arrows will show the direction that the player will be pushed back from the volume. Note that these visualisers are only available when One Sided Collision is enabled.