API reference
API reference
Select your platform
No SDKs available
No versions available

WallPenetrationTunneling Class

Extends MonoBehaviour
This component will check the ray from the character logical head to the actual player tracked head for collisions.
If there is a collider between these two positions it means a wall or other occluding obstacle has been physically traspased and will apply a tunneling effect in the player's view that point them towards the exit of the collision.

Properties

AnimationCurve PenetrationFov[Get]
float ExtraDistance[Get]
string IgnoreTag[Get]
LayerMask LayerMask[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void LateUpdate ( )

Member Functions

void InjectAllWallPenetrationTunneling
( Transform trackedPosition,
Transform logicalPosition,
TunnelingEffect tunneling,
int maxCollidersCheck )
void InjectTrackedPosition
( Transform trackedPosition )
void InjectLogicalPosition
( Transform logicalPosition )
void InjectTunneling
( TunnelingEffect tunneling )
void InjectMaxCollidersCheck
( int maxCollidersCheck )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon