References a Polygin shape by the AssetRef<T> of its Quantum.PolygonCollider asset.
More...
References a Polygin shape by the AssetRef<T> of its Quantum.PolygonCollider asset.
◆ SetPolygonCollider()
| void Quantum.Shape2D.PolygonShape.SetPolygonCollider |
( |
PolygonCollider |
collider | ) |
|
|
inline |
Sets a polygon collider meta data to PolygonShape
- Parameters
-
◆ Serialize()
Serializes a PolygonShape into an instance of IDeterministicFrameSerializer.
- Parameters
-
| ptr | The pointer to the PolygonShape. |
| serializer | The instance of IDeterministicFrameSerializer. |
◆ GetHashCode()
| readonly override Int32 Quantum.Shape2D.PolygonShape.GetHashCode |
( |
| ) |
|
|
inline |
Overrides the hash code generation of this type.
- Returns
- A hash code of the current state of this instance.
◆ SIZE
The size of the struct in bytes.
◆ AssetRef
◆ BroadRadius
| readonly FP Quantum.Shape2D.PolygonShape.BroadRadius |
|
get |
The smallest radius of a circle centered at the polygon Centroid that encloses the polygon.
◆ Centroid
| readonly FPVector2 Quantum.Shape2D.PolygonShape.Centroid |
|
get |
The point representing the geometric center of a shape or object.