Method | Description | |
---|---|---|
CentroidToOut ( |
Get the centroid and apply the supplied transform.
|
|
Clone ( ) : |
||
ComputeAABB ( AABB aabb, |
||
ComputeCentroidToOut ( |
||
ComputeMass ( |
||
GetCentroid ( |
Get the centroid and apply the supplied transform.
|
|
GetVertex ( int index ) : |
Get a vertex by index.
|
|
PolygonShape ( ) : System | ||
Raycast ( RayCastOutput output, RayCastInput input, |
||
Set ( |
Create a convex hull from the given array of points. The count must be in the range [3, Settings.maxPolygonVertices].
|
|
Set ( |
Create a convex hull from the given array of points. The count must be in the range [3, Settings.maxPolygonVertices]. This method takes an arraypool for pooling
|
|
SetAsBox ( float hx, float hy ) : void |
Build vertices to represent an axis-aligned box.
|
|
SetAsBox ( float hx, float hy, |
Build vertices to represent an oriented box.
|
|
SetAsEdge ( |
Set this as a single edge.
|
|
TestPoint ( |
||
Validate ( ) : bool |
Validate convexity. This is a very time consuming operation.
|
public CentroidToOut ( |
||
xf | ||
result | ||
return |
public ComputeAABB ( AABB aabb, |
||
aabb | AABB | |
xf | ||
childIndex | int | |
return | void |
public ComputeCentroidToOut ( |
||
vs | ||
count | int | |
result | ||
return | void |
public ComputeMass ( |
||
massData | ||
density | float | |
return | void |
public GetCentroid ( |
||
xf | ||
return |
public Raycast ( RayCastOutput output, RayCastInput input, |
||
output | RayCastOutput | |
input | RayCastInput | |
xf | ||
childIndex | int | |
return | bool |
public Set ( |
||
vertices | ||
count | int | |
return | void |
public Set ( |
||
verts | ||
num | int | |
vecPool | ||
intPool | ||
return | void |
public SetAsBox ( float hx, float hy ) : void | ||
hx | float | the half-width. |
hy | float | the half-height. |
return | void |
public SetAsBox ( float hx, float hy, |
||
hx | float | the half-width. |
hy | float | the half-height. |
center | the center of the box in local coordinates. | |
angle | float | the rotation of the box in local coordinates. |
return | void |
public SetAsEdge ( |
||
v1 | ||
v2 | ||
return | void |
public TestPoint ( |
||
xf | ||
p | ||
return | bool |