c_navgrid
Members
min_grid_pos:
vec3
max_grid_pos:
vec3
collision_map:
number
sampled_heights:
number
x_cell_count:
number
y_cell_count:
number
cell_size:
number
Functions
get_collision
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local collision_flag = g_navgrid:get_collision(g_local.position)
is_wall
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local point_is_in_wall = g_navgrid:is_wall(g_local.position)
is_bush
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local in_bush = g_navgrid:is_bush(g_local.position)
is_building
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local in_building = g_navgrid:is_building(g_local.position)
is_river
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local in_river = g_navgrid:is_river(g_local.position)
is_bush
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local is_bush = g_navgrid:is_bush(g_local.position)
is_river
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local is_river = g_navgrid:is_river(g_local.position)
is_building
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local is_building = g_navgrid:is_building(g_local.position)
get_height
Argument | Type | Required |
---|---|---|
position | vec3 | + |
local height = g_navgrid:get_height(g_local.position)