Property | Type | Description | |
---|---|---|---|
vertices | Vertices |
Method | Description | |
---|---|---|
ChainShape ( ) : System.Diagnostics |
Constructor for ChainShape. By default have 0 in density.
|
|
ChainShape ( Vertices vertices, bool createLoop = false ) : System.Diagnostics |
Create a new chainshape from the vertices.
|
|
CompareTo ( |
Compare the chain to another chain
|
|
clone ( ) : |
||
computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void | ||
computeSubmergedArea ( |
||
getChildEdge ( int index ) : |
Get a child edge.
|
|
rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool | ||
setVertices ( Vertices vertices, bool createLoop = false ) : void | ||
testPoint ( Transform &transform, |
Method | Description | |
---|---|---|
computeProperties ( ) : void |
Method | Description | |
---|---|---|
getChildEdge ( |
This method has been optimized to reduce garbage.
|
public ChainShape ( Vertices vertices, bool createLoop = false ) : System.Diagnostics | ||
vertices | Vertices | The vertices to use. Must contain 2 or more vertices. |
createLoop | bool | Set to true to create a closed loop. It connects the first vertice to the last, and automatically adjusts connectivity to create smooth collisions along the chain. |
return | System.Diagnostics |
public CompareTo ( |
||
shape | The other chain | |
return | bool |
public computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void | ||
aabb | AABB | |
transform | Transform | |
childIndex | int | |
return | void |
public computeSubmergedArea ( |
||
normal | ||
offset | float | |
xf | Transform | |
sc | ||
return | float |
public getChildEdge ( int index ) : |
||
index | int | The index. |
return |
public rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool | ||
output | RayCastOutput | |
input | RayCastInput | |
transform | Transform | |
childIndex | int | |
return | bool |
public setVertices ( Vertices vertices, bool createLoop = false ) : void | ||
vertices | Vertices | |
createLoop | bool | |
return | void |
public testPoint ( Transform &transform, |
||
transform | Transform | |
point | ||
return | bool |