Unity - better way to ground detect [Raycast vs. BoxCast vs CheckBox]

Channel:
Subscribers:
339
Published on ● Video Link: https://www.youtube.com/watch?v=Edc8pkzo8FI



Duration: 5:52
1,096 views
19


I found conflicting setups for 3D rigidbody ground detection. Wanted to share the best method.

[SerializeField] Vector3 boxSize;
[SerializeField] LayerMask layerMask;
bool CheckBoxGroundCheck ()
{
return Physics.CheckBox(transform.position, boxSize, transform.rotation, layerMask);
}







Tags:
unity
gaming
unity3d
raycast
ground detection
ground-detection
boxcast
box cast
video games
game engine
tutorial
lesson
guide