Sensing Component 2D
34IB Studio
$27.50
(no ratings)
Date |
Price |
---|---|
日時 |
価格($) |
09/30(2024) |
27.5 |
09/30(2024) |
13.75 |
10/14(2024) |
27.5 |
11/22(2024) |
27.5 |
Jump AssetStore
Enhance your 2D game's AI with advanced vision and hearing detection capabilities.The SensingComponent2D provides a comprehensive solution for integrating vision and hearing detection into your 2D game. With customizable parameters for perception radius, angle, and detection layers, this component allows your game characters to detect and respond to visual and auditory stimuli. Use the built-in events to trigger specific actions when objects are detected or forgotten, and when noises are heard. Ideal for developers looking to add realistic AI perception to their projects.Sensing Component 2D DocumentationDiscordThe SensingComponent2D script offers robust 2D sensing capabilities for Unity, including vision and hearing detection. Key features include:Vision Detection: Configurable perception radius and angle, with detection and obstacle layers. Objects within the vision range trigger the OnVisionObjectDetected and OnVisionObjectForgotten events.Hearing Detection: Detects noises based on a specified threshold, triggering the OnNoiseHeard event.Customizable Parameters: Adjustable sensing interval, detection layers, and hearing threshold.Easy Integration: Simply attach the component to your game object and configure the parameters in the Unity Editor.The script utilizes Unity's physics system to detect objects within a specified radius and angle, and raycasting to determine line-of-sight for vision detection. It includes coroutine-based vision detection to manage performance efficiently. The component's hearing detection allows for dynamic sound event handling, making it perfect for creating immersive AI behaviors in 2D environments.