Unity Game Components Project

View the game's source code and development on GitHub: https://github.com/TwoBitCode/Components-Unity-Intruduction/tree/main

๐Ÿ“– Overview

This project is a Unity-based game development task focusing on creating a series of components that demonstrate different game-object behaviors. The components include a pendulum-like movement (Oscillator), continuous rotation (Rotator), a pulsing effect for a game-object, and the ability to hide/show a game-object using player input.

The project is divided into the following parts:

1. ๐Ÿ”„ Oscillator Component - A component that moves a game object back and forth in a pendulum motion.

2. ๐Ÿ” Rotator Component- A component that continuously rotates a game object around a specific axis.

3. โค๏ธ Pulsating Object - A game object (sphere) that increases and decreases in size gradually, mimicking a heartbeat.

4. ๐Ÿ‘๏ธ Hide/Show Component - A component that allows the player to toggle the visibility of a game object using a button press.

โœจ Features

๐Ÿ› ๏ธ Components and Features

 1. ๐Ÿ”„ Oscillator Component

The Oscillator moves a game object back and forth in a smooth, pendulum-like motion. The movement slows down when reaching the boundaries and speeds up as it moves back to the center, similar to a real-world pendulum. 

- ๐Ÿ“ Uses trigonometric functions to create a smooth oscillation effect.

- ๐ŸŽฏ The center of the oscillation is based on the initial position of the object in the scene.

- ๐ŸŽ›๏ธ Parameters are customizable in Unity, allowing for control over the oscillation direction, speed, and amplitude.

2. ๐Ÿ” Rotator Component

The Rotator continuously rotates a game object around a specified axis at a set speed.

- ๐ŸŒ€ Rotation speed and axis can be configured in Unity's Inspector.

- โš™๏ธ Simple and reusable component for any game object that requires continuous rotation.

 3. โค๏ธ Pulsating Object (Heartbeat Effect)

A spherical game object that gradually grows and shrinks in size, simulating a pulsing or heartbeat effect.

- ๐Ÿ“ Uses a smooth, sinusoidal function to change the object's scale over time.

- โฑ๏ธ The pulsing speed and scale limits are adjustable via Unity's Inspector.

4. ๐Ÿ‘๏ธ Hide/Show Component

This component allows a game object to be hidden or displayed by pressing a button. It utilizes Unity's `InputAction` to manage input events.

- ๐Ÿ‘† Toggles visibility of the game object when a specific button is pressed.

- ๐Ÿ› ๏ธ Easy to assign different input keys or buttons for customization.


๐Ÿ“ Labels and Annotations

In the scene, each game object includes descriptive text that explains the behavior being demonstrated:

- ๐Ÿ†• To create text labels, an empty GameObject with a Text Mesh Pro component is used.

- ๐ŸŽจ The text properties, such as size, color, and alignment, are configured to improve visibility.

---

๐ŸŽจ Customization

Each component includes parameters that can be adjusted directly in Unity's Inspector:

๐Ÿ”„ Oscillator: Center position, speed, direction, and amplitude.

๐Ÿ” Rotator: Axis of rotation and speed.

โค๏ธ Pulsating Object: Pulse speed and scale range.

๐Ÿ‘๏ธ Hide/Show: Input key for toggling visibility.

---

๐ŸŒŸ Contributors

- Vivian Umansky

- Miriam Nagar

Published 8 hours ago
StatusReleased
CategoryOther
PlatformsHTML5
AuthorTwoBitCode
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.