floorTagsOf

Returns the tags of every floor a particle of body stood on during the last step, together; SolidTags.NONE for none.

Samples

val ice = SolidTags.of(0)
val world = PhysicsWorld()
val grid = SolidGrid(columns = 20, rows = 10, tileSize = 16f)
for (column in 0 until 20) grid.fill(column, 9, tags = ice)
world.solids = grid
val blob = world.softBody(SoftBodyShape.circle(12f, 16, coreMass = 4f), centerX = 160f, baseY = 140f)
repeat(30) { world.step(1.seconds / 60) }
assertPrints(world.softBodies.floorTagsOf(blob).intersects(ice), "true")