five-on-it / apps/client/src/renderer/contact-view / ContactView
Class: ContactView
Defined in: apps/client/src/renderer/contact-view.ts:62
Tracks ContactReading frame by frame.
Constructors
Constructor
new ContactView():
ContactView
Returns
ContactView
Accessors
reading
Get Signature
get reading():
ContactReading
Defined in: apps/client/src/renderer/contact-view.ts:103
The reading for the tests.
Returns
Methods
frame()
frame(
mine,others,touching,predicted):void
Defined in: apps/client/src/renderer/contact-view.ts:74
One frame: the player's drawn car (none on foot), the drawn cars around it by id, and the ids of those whose bodies the prediction has against the player's car now.
Parameters
mine
GroundBox | undefined
others
readonly object[]
touching
ReadonlySet<number>
predicted
number
Returns
void