generated from pancake-llc/package
-
Notifications
You must be signed in to change notification settings - Fork 17
PhysicsCast
Aprius edited this page Jan 16, 2025
·
2 revisions
RaycastNonAlloc
BoxCastNonAlloc
CapsuleCastNonAlloc
SphereCastNonAlloc
OverlapBoxNonAlloc
OverlapCapsuleNonAlloc
OverlapSphereNonAlloc
RaycastNonAlloc
It's similar to Physics.RaycastNonAlloc
but you don't need to worry about initializing RaycastHit[]
for results anymore
public DynamicArray<RaycastHit> results = new();
PhysicsCast.v(transform.position, Vector3.right, results);