![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script is used by some entities (including the player) to detect when they are touching a wall. If either side of the entity is touching the wall, onWall is set to true. When the wall detector consists of two trigger zones, frontOnWall and backOnWall become available.
WallDetectorZone.cs is what updates this script. See WallDetectorZone.cs for more info!
Documentation updated 12/19/2024
Public Member Functions | |
void | wallTouched (WallDetectorSide side) |
void | wallUntouched (WallDetectorSide side) |
Public Attributes | |
LayerMask | wallLayer |
The layers which objects are considered part of the wall are on. | |
Properties | |
bool | onWall [get, private set] |
True when either side of the entity is touching a wall. | |
bool | frontOnWall [get, private set] |
True when there is a front trigger zone and it is touching a wall. | |
bool | backOnWall [get, private set] |
True when there is a back trigger zone and it is touching a wall. | |
void WallDetectorInfo.wallTouched | ( | WallDetectorSide | side | ) |
void WallDetectorInfo.wallUntouched | ( | WallDetectorSide | side | ) |
LayerMask WallDetectorInfo.wallLayer |
The layers which objects are considered part of the wall are on.
|
getprivate set |
True when there is a back trigger zone and it is touching a wall.
|
getprivate set |
True when there is a front trigger zone and it is touching a wall.
|
getprivate set |
True when either side of the entity is touching a wall.