Function physx_sys::PxRefCounted_getReferenceCount
source · pub unsafe extern "C" fn PxRefCounted_getReferenceCount(
self_: *const PxRefCounted
) -> u32
Expand description
Returns the reference count of the object.
At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically.
the current reference count.