struct MAGES::MeshDeformations::RuntimeCollisionData

Overview

Runtime collision data. More…

struct RuntimeCollisionData
{
    // fields

    NativeReference Count;
    NativeArray<ContactPair> Collisions;

    // properties

    bool IsCreated;
    int Capacity;

    // methods

    void Create(
        in int capacity,
        Allocator allocator,
        NativeArrayOptions nativeArrayOptions = NativeArrayOptions.ClearMemory
    );

    void Dispose();
};

Detailed Documentation

Runtime collision data.

Fields

NativeReference Count

The collision count.

NativeArray<ContactPair> Collisions

The actual collisions.

Properties

bool IsCreated

Gets a value indicating whether this data is created.

int Capacity

Gets or sets the capacity of the data.

Methods

void Create(
    in int capacity,
    Allocator allocator,
    NativeArrayOptions nativeArrayOptions = NativeArrayOptions.ClearMemory
)

Create the runtime collision data buffers.

Parameters:

capacity

The capacity.

allocator

The allocator.

nativeArrayOptions

The array options.

void Dispose()

Disposes the allocated memory.