Method Create
Create(NativeArray<float3>, ConvexHullGenerationParameters)
Create a convex collider from the given point cloud.
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> points, ConvexHullGenerationParameters generationParameters)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | points | The points. |
ConvexHullGenerationParameters | generationParameters | Options for controlling the generation. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(NativeArray<float3>, ConvexHullGenerationParameters, CollisionFilter)
Creates a convex collider from the given point cloud
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> points, ConvexHullGenerationParameters generationParameters, CollisionFilter filter)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | points | The points. |
ConvexHullGenerationParameters | generationParameters | Options for controlling the generation. |
CollisionFilter | filter | Specifies the filter. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |
Create(NativeArray<float3>, ConvexHullGenerationParameters, CollisionFilter, Material)
Creates a convex collider from the given point cloud
Declaration
public static BlobAssetReference<Collider> Create(NativeArray<float3> points, ConvexHullGenerationParameters generationParameters, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<float3> | points | The points. |
ConvexHullGenerationParameters | generationParameters | Options for controlling the generation. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | A BlobAssetReference<Collider> |