WieldableRetractionHandler
WieldableRetractionHandler
Class
WieldableRetractionHandler
ClassThis class manages the retraction of wieldable items based on nearby objects in the game environment.
_view
: Transform used for ray-casting to detect obstacles._castDistance
: Maximum distance for detecting objects._castRadius
: Determines whether to use a SphereCast or Raycast for detection._blockDistance
: Minimum distance to block wieldable actions when an object is too close.FixedUpdate()
: Continuously checks for nearby objects and blocks wieldable actions if necessary.BlockWieldableActions(bool block)
: Blocks or unblocks using/aiming wieldables based on proximity to obstacles.
Last updated