The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The found Disc, or undefined if it is not found.
Finds the index of the first Disc that includes any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.Index of the found Disc, or -1 if it is not found.
Finds the first Goal that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Goal, or undefined if it is not found.
Finds the first Goal that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Goal, or undefined if it is not found.
Finds the first Joint that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Joint, or undefined if it is not found.
Finds the first Joint that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Joint, or undefined if it is not found.
Finds the first Plane that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Plane, or undefined if it is not found.
Finds the first Plane that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Plane, or undefined if it is not found.
Finds the first Segment that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Segment, or -1 if it is not found.
Finds the index of the first Segment that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
Index of the found Segment, or -1 if it is not found.
Finds the first spawn point that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found spawn point's index and team id, or [-1, -1] if it is not found.
Finds the first Vertex that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
The found Vertex, or undefined if it is not found.
Finds the index of the first Vertex that is near enough to any given point.
The state object to be queried. This object must come from inside a Room object. There are two ways of obtaining it:
room.state.room.stateExt.The point's coordinates. This is an object that should have the following keys:
x: number: The x coordinate.y: number: The y coordinate.
The coordinates should be converted into Mooball's coordinate system before being used here. You can use transformPixelCoordToMapCoord(x, y) and transformMapCoordToPixelCoord(x, y) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.The maximum allowed distance to the point. The unit is not in pixels, but in Mooball's units. You can use transformPixelDistanceToMapDistance(distance) and transformMapDistanceToPixelDistance(distance) functions defined in both DefaultRenderer and SandboxRenderer for transformations between Mooball's and browser's coordinate systems.
Index of the found Vertex, or -1 if it is not found.
Finds the first Disc that includes any given point.