Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to convert UnityEngine.Collider to Unity.Physics.PhysicsCollider inside baker?

Discussion in 'Physics for ECS' started by Envilon, Dec 22, 2022.

  1. Envilon

    Envilon

    Joined:
    Aug 8, 2020
    Posts:
    55
    Hi! Is it possible to convert UnityEngine.Collider to Unity.Physics.PhysicsCollider with the same shape? During baking, I have references to some Game Objects from the scene, which have some Collider components on them. For each of them, I would like to take their collider component and create a new entity with appropriate Unity.Physics.PhysicsCollider component. Is that possible?