Struct CollisionPairAnswer
Internal Use Only. One pair's answer of collision__detect_pairs (DetectPairs(long, long, IReadOnlyList<ICollidable>, CollisionPairRecord[], CollisionPairAnswer[], int[], out CollisionFlag, int)):
the mirror of mechcollisioncollision_pair_out_t (136 bytes) – the pose and the flag to write
back to the pair, and what the call did with it. For a pair not reached or skipped (state
0 / 1) the pose and the flag echo the record's, so writing them back changes nothing, as the managed
loop leaves such a pair. Field for field collision_pairs.h.
public struct CollisionPairAnswer
- Inherited Members
- Extension Methods
Fields
flag
The flag written to CollisionIndexPair.CollisionFlag, as its int (the raw value, _IGNORED included); the memo echoed for states 0 and 1.
public int flag
Field Value
mat_ab
The pose written to CollisionIndexPair.MatAB (B relative to A: matB * Inv(matA)); the input echoed for states 0 and 1.
public mat4d_t mat_ab
Field Value
state
0 not reached (a collidable index of -1, or an anchor not in the map), 1 the pose is not finite (skipped, the memo untouched), 2 the memo answered (the pose equals the remembered one and the remembered flag is not UNDEFINED), 3 detected (the tree check ran, or the dispatch answered without a tree).
public int state