You are browsing as a guest. Sign up (or log in) to start making projects!

2h 29m 19s logged

The Floating Bird Mystery

What I was trying to do: Build a space-themed Flappy Bird game in Unity.

The Problem: When I tried to make the bird fall toward the ground, it kept flying upward or disappearing off-screen.

How I fixed it:

Checked my animations to ensure position keys were not overriding movement.

Discovered the player GameObject was marked as Static, preventing Unity’s physics from moving it properly.

Reset the player’s Mass from around 184 down to 1 so gravity wouldn’t shoot it out of view.

Turned off Apply Root Motion on the Animator component.

Input System & Collision Setup

The Problem: A red console error appeared regarding UnityEngine.Input, and the bird was flying straight through obstacles without hitting anything.

How I fixed it:

Fixed the Unity Input setting by allowing Both old and new input handling systems in Project Settings.

Located the Gizmos toggles in Unity 6 to inspect collider wireframes.

Realized my project is set up in 3D, so I needed to convert the bird’s physics components from 2D (Rigidbody 2D, Circle Collider 2D) over to 3D (Rigidbody, Box/Sphere Collider).

Pipe Collisions & Physics Overrides

The Problem: The bird was passing directly through the pipes instead of crashing or triggering a game restart.

How I fixed it:

Identified that my C# script was moving the bird by directly modifying transform.position, which bypassed standard physics collisions.

Set Is Trigger on the Pipe colliders so OnTriggerEnter would register hits.

Added a 3D Rigidbody to the Bird to ensure the physics engine tracks trigger events.

Pipe Spawning & Floor Obstructions

The Problem: When spawning pipes at random Y heights, their colliders were physically catching on the Floor object, blocking them from reaching the bird.

How I fixed it:

Enabled Is Trigger on the Floor’s collider (or isolated layers) so pipes pass cleanly through the ground regardless of spawn height.

Restructured the pipe hierarchy and spawning script to instantiate pipe prefabs cleanly in 3D space at Z = 0.

0
4

Comments 0

No comments yet. Be the first!