From waht I understand, Collider.Bounds are the sides or bounds of the collider of the GameObject (at least for a cube with a BoxCollider). But I got a result that I wasn’t expecting when I tried moving a cube continuously downwards and drawing the bounds with lines. While moving frame by frame, the collider bounds seemed to be not bounding the cube (or at least that’s what my test is showing, if my test is correct).

Here’s 3 frames of screenshot:

What I did for this is create a new 3D project, add a Cube, then added a single script and then added this script to the Cube. The whole script is:

`using UnityEngine; public class NewBehaviourScript : MonoBehaviour { Vector3 velocity; // Start is called before the first frame update void Start() { velocity = Vector3.zero; } // Update is called once per frame void Update() { velocity.y += -0.5f; transform.Translate(velocity); Bounds bounds = GetComponent<Collider>().bounds; Debug.DrawLine(new Vector3(bounds.min.x, bounds.min.y, bounds.min.z), new Vector3(bounds.max.x, bounds.min.y, bounds.min.z), Color.red); Debug.DrawLine(new Vector3(bounds.max.x, bounds.min.y, bounds.min.z), new Vector3(bounds.max.x, bounds.max.y, bounds.min.z), Color.red); Debug.DrawLine(new Vector3(bounds.max.x, bounds.max.y, bounds.min.z), new Vector3(bounds.min.x, bounds.max.y, bounds.min.z), Color.red); Debug.DrawLine(new Vector3(bounds.min.x, bounds.max.y, bounds.min.z), new Vector3(bounds.min.x, bounds.min.y, bounds.min.z), Color.red); Debug.DrawLine(bounds.min, bounds.max, Color.red); } } `

Am I not understanding something or am I doing something wrong?

- Why does British theatre leave working-class actors in the wings?
- This $14 Hanging Organizer Does All the Hard Work For Me
- I'm Author Sarah Pinsker, and This Is How I Work
- I'm Maria Popova, and This Is How I Work
- I'm Justin Rosenstein, Co-Founder of Asana, and This Is How I Work
- Cheaters beware! Facial recognition on Google's Pixel 4 works with people's eyes CLOSED - meaning your partner could open your phone while you're asleep
- I'm Adam Savage, and This Is How I Work
- Enormous clusters of thousands of galaxies create ultra hot shockwaves of 100 MILLION degrees when they collide
- California skydiver, 28, dies after she collides with a semi-trailer truck and rolls onto a busy highway - as it's revealed parachuting company has had SIXTEEN fatalities since 1999 and had its premises raided by the FBI
- Intergalactic wrestling match is caught on camera in digitally enhanced Hubble telescope photo of two galaxies colliding 200million light years away