Method CreateQuad
CreateQuad(float3, float3, float3, float3)
Creates a quad from vertices. Quad vertices must be coplanar and wound consistently.
Declaration
public static BlobAssetReference<Collider> CreateQuad(float3 vertex0, float3 vertex1, float3 vertex2, float3 vertex3)
Parameters
Type | Name | Description |
---|---|---|
float3 | vertex0 | The first vertex of the quad. |
float3 | vertex1 | The second vertex of the quad. |
float3 | vertex2 | The third vertex of the quad. |
float3 | vertex3 | The fourth vertex of the quad. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | The new quad. |
CreateQuad(float3, float3, float3, float3, CollisionFilter)
Creates a quad.
Declaration
public static BlobAssetReference<Collider> CreateQuad(float3 vertex0, float3 vertex1, float3 vertex2, float3 vertex3, CollisionFilter filter)
Parameters
Type | Name | Description |
---|---|---|
float3 | vertex0 | The first vertex of the quad. |
float3 | vertex1 | The second vertex of the quad. |
float3 | vertex2 | The third vertex of the quad. |
float3 | vertex3 | The fourth vertex of the quad. |
CollisionFilter | filter | Specifies the filter. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | The new quad. |
CreateQuad(float3, float3, float3, float3, CollisionFilter, Material)
Creates a quad.
Declaration
public static BlobAssetReference<Collider> CreateQuad(float3 vertex0, float3 vertex1, float3 vertex2, float3 vertex3, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
float3 | vertex0 | The first vertex of the quad. |
float3 | vertex1 | The second vertex of the quad. |
float3 | vertex2 | The third vertex of the quad. |
float3 | vertex3 | The fourth vertex of the quad. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
Returns
Type | Description |
---|---|
BlobAssetReference<Collider> | The new quad. |