| Parameter | Description |
|---|---|
| geometry | The shape geometry to use. |
| definition | The shape definition to use. |
| allocator | The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent. |
NativeArray<PhysicsShape> The created shapes. This NativeArray must be disposed of after use otherwise leaks will occur. The exception to this is if the array is empty.
Create a batch of Circle shapes attached to this body.
| Parameter | Description |
|---|---|
| geometry | The shape geometry to use. |
| definition | The shape definition to use. |
| allocator | The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent. |
NativeArray<PhysicsShape> The created shapes. This NativeArray must be disposed of after use otherwise leaks will occur. The exception to this is if the array is empty.
Create a batch of Polygon shapes attached to this body.
| Parameter | Description |
|---|---|
| geometry | The shape geometry to use. |
| definition | The shape definition to use. |
| allocator | The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent. |
NativeArray<PhysicsShape> The created shapes. This NativeArray must be disposed of after use otherwise leaks will occur. The exception to this is if the array is empty.
Create a batch of Capsule shapes attached to this body.
| Parameter | Description |
|---|---|
| geometry | The shape geometry to use. |
| definition | The shape definition to use. |
| allocator | The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent. |
NativeArray<PhysicsShape> The created shapes. This NativeArray must be disposed of after use otherwise leaks will occur. The exception to this is if the array is empty.
Create a batch of Segment shapes attached to this body.
| Parameter | Description |
|---|---|
| geometry | The shape geometry to use. |
| definition | The shape definition to use. |
| allocator | The memory allocator to use for the results. This can only be Allocator.Temp, Allocator.TempJob or Allocator.Persistent. |
NativeArray<PhysicsShape> The created shapes. This NativeArray must be disposed of after use otherwise leaks will occur. The exception to this is if the array is empty.
Create a batch of Chain Segment shapes attached to this body.