Search Unity

[unity physics gjk algorithm]Extracting pointer for subset of componentdata?

Discussion in 'Entity Component System' started by Mr-Mechanical, Dec 21, 2019.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    I am using ConvexConvexDistanceQueries (from Unity Physics), but the input for ConvexConvex is 2 float3* vertices. I have Entities with float3 wrapper components. Is there any way to extract a proper subset of the component data for use in this function from Unity Physics correctly?

    Thanks.