Skip to content

Instantly share code, notes, and snippets.

@Densyakun
Created November 22, 2020 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Densyakun/0cd0d329dbc1b45debca6cc8d3016c90 to your computer and use it in GitHub Desktop.
Save Densyakun/0cd0d329dbc1b45debca6cc8d3016c90 to your computer and use it in GitHub Desktop.
Unity.Physics.Collider to Unity.Physics.BoxCollider
Entities
.ForEach(
(in PhysicsCollider collider) =>
{
if (collider.Value.Value.Type == ColliderType.Box)
{
Unity.Physics.BoxCollider* boxColliderPtr = (Unity.Physics.BoxCollider*)collider.ColliderPtr;
Debug.Log(*boxColliderPtr);
}
}
)
.WithBurst()
.ScheduleParallel();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment