Rapier C — 3D / f64 0.36.0+c.0
Loading...
Searching...
No Matches
R3ColliderHandle Struct Reference

Copyable non-owning handle: world pointer plus entity index and generation. More...

#include <rapier.h>

Data Fields

struct R3World * world
 Borrowed owning world.
uint32_t index
 Slot index; UINT32_MAX denotes the explicit invalid handle.
uint32_t generation
 Slot generation used to reject stale handles.

Detailed Description

Copyable non-owning handle: world pointer plus entity index and generation.

The world must remain alive throughout every use. Copying does not retain it. UINT32_MAX/UINT32_MAX with a NULL world is invalid.

Field Documentation

◆ generation

uint32_t R3ColliderHandle::generation

Slot generation used to reject stale handles.

Do not modify it.

◆ index

uint32_t R3ColliderHandle::index

Slot index; UINT32_MAX denotes the explicit invalid handle.

◆ world

struct R3World* R3ColliderHandle::world

Borrowed owning world.

Never use this handle after freeing that world.


The documentation for this struct was generated from the following file: