[][src]Type Definition linear_sim::object::KeyType

type KeyType = u32;

Object keys are used to uniquely identify an object of a specific kind: static, dynamic, or nocollide.

Within the collision subsystem, one bit of this key type will be used to distinguish between dynamic and static keys so they can be stored together. So the actual number of static or dynamic objects that can be created is up to 2^31 with 32-bit keys.

Note that this should not exceed usize so if u32 is used here then the code can only be guaranteed to run on 32-bit systems or higher, but not 16-bit.