-
Notifications
You must be signed in to change notification settings - Fork 11
Actor passes through inner tiles of smooth platform
Actor passes through tiles painted using the smooth platform brush because inner tiles do not have colliders by default.
Collisions are not detected between objects and inner tiles (those that are surrounded by 8 other tiles).
The smooth platform brush does not include a box collider on inner tiles by default because they are usually not needed for 2.5D platform type games. Omission of these colliders improves performance both in editor and in game.
Manually add minimum number of colliders using empty game objects instead of using colliders in brushes. The fewer colliders the better!
-
Find and select the following prefab in Project panel: "Rotorz/Tile System/TileBrushes/Blocks/Smooth Block/centre_inner.prefab".
-
Select menu Component | Physics | Box Collider.
-
Ensure that centre of collider is set to (0, 0, 0) and that size of collider is set to (1, 1, 1) using Inspector.
Source: topics/Actor-passes-through-inner-tiles-of-smooth-platform.md
Copyright © Rotorz Limited. All rights reserved.