MCPcopy Create free account
hub / github.com/ByteArena/box2d / Key

Method Key

CollisionB2Collision.go:43–45  ·  view source on GitHub ↗

Contact ids to facilitate warm starting. < Used to quickly compare contact ids.

()

Source from the content-addressed store, hash-verified

41/// Contact ids to facilitate warm starting.
42///< Used to quickly compare contact ids.
43func (v B2ContactID) Key() uint32 {
44 return *(*uint32)(unsafe.Pointer(&v.IndexA)) // here we do not care about Endianness; see https://stackoverflow.com/a/7380354
45}
46
47func (v B2ContactID) SetKey(key uint32) {
48 *(*uint32)(unsafe.Pointer(&v.IndexA)) = key

Callers 2

B2ContactUpdateFunction · 0.80
B2GetPointStatesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected