Constructor ChildCollider
ChildCollider(Collider*)
Create from collider.
Declaration
public ChildCollider(Collider* collider)
Parameters
Type | Name | Description |
---|---|---|
Collider* | collider | [in] If non-null, the collider. |
ChildCollider(Collider*, RigidTransform)
Create from body.
Declaration
public ChildCollider(Collider* collider, RigidTransform transform)
Parameters
Type | Name | Description |
---|---|---|
Collider* | collider | [in] If non-null, the collider. |
RigidTransform | transform | The transform. |
ChildCollider(Collider*, RigidTransform, Entity)
Create from body with Entity indirection.
Declaration
public ChildCollider(Collider* collider, RigidTransform transform, Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Collider* | collider | [in] If non-null, the collider. |
RigidTransform | transform | The transform. |
Entity | entity | The entity. |
ChildCollider(float3, float3, float3, CollisionFilter, Material)
Create as triangle, from 3 vertices.
Declaration
public ChildCollider(float3 a, float3 b, float3 c, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
float3 | a | Vertex a. |
float3 | b | Vertex b. |
float3 | c | Vertex c. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
ChildCollider(float3, float3, float3, float3, CollisionFilter, Material)
Create as quad, from 4 coplanar vertices.
Declaration
public ChildCollider(float3 a, float3 b, float3 c, float3 d, CollisionFilter filter, Material material)
Parameters
Type | Name | Description |
---|---|---|
float3 | a | Vertex a. |
float3 | b | Vertex b. |
float3 | c | Vertex c. |
float3 | d | Vertex d. |
CollisionFilter | filter | Specifies the filter. |
Material | material | The material. |
ChildCollider(ChildCollider, ChildCollider)
Combine a parent ChildCollider with another ChildCollider describing one of its children.
Declaration
public ChildCollider(ChildCollider parent, ChildCollider child)
Parameters
Type | Name | Description |
---|---|---|
ChildCollider | parent | The parent. |
ChildCollider | child | The child. |