Method CreateTriangle
CreateTriangle(float3, float3, float3)
Creates a triangle.
Declaration
public static BlobAssetReference<Collider> CreateTriangle(float3 vertex0, float3 vertex1, float3 vertex2)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | vertex0 | The first vertex of the triangle. |
| float3 | vertex1 | The second vertex of the triangle. |
| float3 | vertex2 | The third vertex of the triangle. |
Returns
| Type | Description |
|---|---|
| BlobAssetReference<Collider> | The new triangle. |
CreateTriangle(float3, float3, float3, CollisionFilter)
Creates a triangle.
Declaration
public static BlobAssetReference<Collider> CreateTriangle(float3 vertex0, float3 vertex1, float3 vertex2, CollisionFilter filter)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | vertex0 | The first vertex of the triangle. |
| float3 | vertex1 | The second vertex of the triangle. |
| float3 | vertex2 | The third vertex of the triangle. |
| CollisionFilter | filter | Specifies the filter. |
Returns
| Type | Description |
|---|---|
| BlobAssetReference<Collider> | The new triangle. |
CreateTriangle(float3, float3, float3, CollisionFilter, Material)
Creates a triangle.
Declaration
public static BlobAssetReference<Collider> CreateTriangle(float3 vertex0, float3 vertex1, float3 vertex2, CollisionFilter filter, Material material)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | vertex0 | The first vertex of the triangle. |
| float3 | vertex1 | The second vertex of the triangle. |
| float3 | vertex2 | The third vertex of the triangle. |
| CollisionFilter | filter | Specifies the filter. |
| Material | material | The material. |
Returns
| Type | Description |
|---|---|
| BlobAssetReference<Collider> | The new triangle. |