The buffers with runtime data for the vertices and normals. They are loaded when the asset is added or replaced. More...
Public Member Functions | |
PolygonColliderRuntimeData (FPVector2 *verticesBuffer, FPVector2 *normalsBuffer) | |
Sets the pointers to the runtime data of the polygon. More... | |
PolygonColliderRuntimeData | Free (Native.Allocator allocator) |
Frees the runtime data in the memory of a polygon's vertices and normal buffers. More... | |
Static Public Member Functions | |
static PolygonColliderRuntimeData | Create (FPVector2[] vertices, FPVector2[] normals, Native.Allocator allocator) |
Initializes the polygon runtime data into creating a buffer for the vertices and normals . More... | |
Public Attributes | |
bool | IsValid => VerticesBuffer != null && NormalsBuffer != null |
Checks if the vertices and normal buffers are valid for usage. More... | |
readonly FPVector2 * | NormalsBuffer |
The pointer to the normals' runtime data. More... | |
readonly FPVector2 * | VerticesBuffer |
The pointer to the vertices' runtime data. More... | |
The buffers with runtime data for the vertices and normals. They are loaded when the asset is added or replaced.
|
inline |
Sets the pointers to the runtime data of the polygon.
verticesBuffer | The pointer to the vertices' runtime data. |
normalsBuffer | The pointer to the normals' runtime data. |
|
inlinestatic |
Initializes the polygon runtime data into creating a buffer for the vertices and normals .
vertices | The managed array of vertices that define the polygon collider |
normals | The managed array of the normals of all polygon sides |
allocator | The allocator to use for managing memory. |
|
inline |
Frees the runtime data in the memory of a polygon's vertices and normal buffers.
allocator | The allocator to use for managing memory. |
bool Quantum.PolygonColliderRuntimeData.IsValid => VerticesBuffer != null && NormalsBuffer != null |
Checks if the vertices and normal buffers are valid for usage.
readonly FPVector2* Quantum.PolygonColliderRuntimeData.VerticesBuffer |
The pointer to the vertices' runtime data.
readonly FPVector2* Quantum.PolygonColliderRuntimeData.NormalsBuffer |
The pointer to the normals' runtime data.