Engine api
This commit is contained in:
@@ -243,3 +243,7 @@ export function eyes_in_water(
|
||||
): boolean {
|
||||
return is_liquid(Math.floor(body.x), Math.floor(body.y + eye_height), Math.floor(body.z));
|
||||
}
|
||||
|
||||
// what the engine calls through, so engine access mods can hook these like methods (module exports can't be
|
||||
// reassigned). see docs/modding/misc/engine.md
|
||||
export const physics = { move_body, back_off_from_edge, box_is_free, in_water, eyes_in_water };
|
||||
|
||||
Reference in New Issue
Block a user