A downloadable Example Project

Un ancien projet réalisé sous Unity qui consistait simplement à tester les interactions à la souris dans un environnement 3D. Il est constitué d'un script simple qui traque la position du clic à l'aide de Raycast, puis crée une liaison de type "Spring Joint" entre l'objet et la position de la souris. Le résultat est celui présenté dans la vidéo. Les objets sont stockés dans différents layers, permettant ensuite de changer l'apparence du pointeur de la souris en fonction de l'objet qu'elle survole.


An old project released under Unity which consisted simply of testing mouse interactions in a 3D environment. This project is constitued of a simple script which tracks the position of the click using Raycast, then creates a "Spring Joint" connection between the object and the position of the mouse. The result is the one shown in the video. The objects are stored in different layers, which then allows to change the appearance of the mouse pointer depending on the object it is hovering over.