-
Notifications
You must be signed in to change notification settings - Fork 1
Object Interaction Ray
Bas de Reus edited this page Mar 15, 2024
·
6 revisions
The Object Interaction Ray is a versatile tool designed to enhance gameplay across various platforms, including PC, mobile, and tablet devices. With its universal functionality, players can seamlessly click and interact with in-game elements, ensuring a smooth and immersive gaming experience regardless of the device they're using. This intuitive feature adds depth and engagement to gameplay, allowing users to effortlessly navigate and engage with the virtual world at their fingertips.
Also on the Technical Design page.
Methods | Return | Description |
---|---|---|
- GetMousePosition
|
Vector3 |
Gets the position of the mouse / finger on the touchscreen |
- Interact
|
void |
Shoots out a raycast in the direction of GetMousePosition, that when it hits an object with the INTERACTABLE_TAG invokes an event |
Events | Description |
---|---|
onInteract |
The event that triggers when the ray from Interact collides with this object. |