top of page
Picture 1.jpg

Coloring Game

The game places the user in a virtual room without a roof. In the center of the room, there's a box filled with colourful balls. The user's “goal” is to pick up these balls and throw them at white objects scattered around the scene. Upon impact, the white objects change colour to match the colour of the ball thrown. The objects in the scene are floating up and down, adding dynamic quality to the environment.

Key Features

  1. Colourful Ball Interaction: Users can interact with colourful balls present in the environment. The balls are equipped with physics, allowing them to bounce realistically upon impact with surfaces or objects.

  2. Colour Matching Mechanism: White objects placed around the scene serve as targets. Upon collision with a coloured ball, these objects change their colour to match the colour of the impacting ball, creating a visually stimulating colour-matching experience.

  3. Dynamic Floating Objects: The objects in the scene exhibit subtle floating movements, adding a dynamic element and immersion to the environment. This floating movement is achieved through an animation curve that controls the vertical displacement of the objects.

  4. XR Interaction Setup: The project utilizes XR Interaction setup, enabling seamless interaction between the user and the virtual environment. Users can manipulate objects (the balls) within the VR space using their motion controllers, enhancing the immersive experience.

Technical Implementation

  1. Colour Ball Script: A script is attached to the colourful balls, defining their default colour and setting the colour of their material upon instantiation.

  2. Colourable Object Script: Objects in the scene are programmed to detect collisions with colour balls. Upon collision, these objects change their colour to match the colour of the impacting ball, providing the core mechanic of the colour-matching game.

  3. Floating Movement Script: Objects in the scene exhibit floating movements, controlled by an animation curve. This script calculates the vertical displacement of objects over time, creating the illusion of floating.

bottom of page