generated from pancake-llc/package
-
Notifications
You must be signed in to change notification settings - Fork 16
Physics2DCast
Aprius edited this page Jan 16, 2025
·
1 revision
RaycastNonAlloc
LinecastNonAlloc
BoxCastNonAlloc
CapsuleCastNonAlloc
OverlapBoxNonAlloc
CircleCastNonAlloc
OverlapAreaNonAlloc
OverlapCapsuleNonAlloc
OverlapCircleNonAlloc
OverlapPointNonAlloc
RaycastNonAlloc
It's similar to Physics2D.RaycastNonAlloc
but you don't need to worry about initializing RaycastHit2D[]
for results anymore
public DynamicArray<RaycastHit2D> results = new();
Physics2DCast.v(transform.position, Vector2.right, results);