Skip to content

Instantly share code, notes, and snippets.

View alexandreservian's full-sized avatar

Alexandre Servian alexandreservian

View GitHub Profile
@alexandreservian
alexandreservian / BoxCastDrawer.cs
Created February 11, 2023 22:49 — forked from SolidAlloy/BoxCastDrawer.cs
A class that allows to visualize Unity Physics2D.BoxCast() method.
using UnityEngine;
/// <summary>
/// A class that allows to visualize the Physics2D.BoxCast() method.
/// </summary>
/// <remarks>
/// Use Draw() to visualize an already cast box,
/// and BoxCastAndDraw() to cast a box AND visualize it at the same time.
/// </remarks>