Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/amethyst/voxel-mapper
/ functions
Functions
166 in github.com/amethyst/voxel-mapper
⨍
Functions
166
◇
Types & classes
76
↓ 9 callers
Function
integer_points_on_line_segment_1d
Returns all numbers `t` such that `bias + slope * t` is an integer and `t_0 <= t <= t_f`. Always returns empty vector for constant (`slope == 0.0`) fu
src/collision/floor_translation.rs:13
↓ 8 callers
Function
voxel_containing_point
(p: na::Point3<f32>)
src/voxel.rs:166
↓ 8 callers
Function
yaw_and_pitch_from_vector
Returns pitch and yaw angles that rotates z unit vector to v. The yaw is applied first to z about the y axis to get z'. Then the pitch is applied abou
src/geometry.rs:130
↓ 6 callers
Function
assert_relative_eq_vec
(v1: &Vec<f32>, v2: &Vec<f32>)
src/test_util.rs:17
↓ 6 callers
Function
translate_over_floor
Moves a point along a translation vector while doing collision resolution with the floor voxels. The point may only travel above floor voxels, and it
src/collision/floor_translation.rs:105
↓ 5 callers
Function
assert_relative_eq_point3
(p1: &Point3<f32>, p2: &Point3<f32>)
src/test_util.rs:30
↓ 5 callers
Method
build
(self, world: &mut World)
src/bin/editor/control/camera.rs:168
↓ 5 callers
Function
empty_voxels
()
src/collision/floor_translation.rs:249
↓ 5 callers
Function
make_floor_strip
(voxels: &mut ChunkedLatticeMap<TestVoxel>)
src/collision/floor_translation.rs:253
↓ 5 callers
Function
project_point_onto_line
(p: &Point3<f32>, line: &Line)
src/geometry.rs:59
↓ 4 callers
Method
is_empty
(&self)
src/voxel.rs:104
↓ 4 callers
Method
is_floor
(&self)
src/collision/floor_translation.rs:244
↓ 4 callers
Function
make_bump
(voxels: &mut ChunkedLatticeMap<TestVoxel>)
src/collision/floor_translation.rs:269
↓ 4 callers
Function
make_sunlight
(position: [f32; 3], intensity: f32, world: &mut World)
src/bin/editor/only_state.rs:137
↓ 4 callers
Method
voxel_info_transform
(&'a self)
src/voxel.rs:43
↓ 3 callers
Function
find_unobstructed_ranges
Given `path`, find all contiguous ranges of points that are not obstructed by non-empty voxels. The ranges are open-ended, i.e. not including the end:
src/bin/editor/control/camera/colliding_controller.rs:308
↓ 3 callers
Method
flush
(&self, cache: LocalVoxelCache)
src/voxel/chunk_cache_flusher.rs:15
↓ 3 callers
Function
line_plane_intersection
(l: &Line, p: &Plane)
src/geometry.rs:42
↓ 3 callers
Method
unit_vector
(self)
src/geometry.rs:176
↓ 3 callers
Function
vertical_probe
POTENTIAL BUG: can skip over non-floor voxels in a column
src/collision/floor_translation.rs:77
↓ 3 callers
Function
voxel_center
(p: Point3i)
src/voxel.rs:162
↓ 2 callers
Function
edit_sphere
( operation: SetVoxelOperation, center: Point3i, radius: u32, voxel_type: VoxelType, map_r
src/bin/editor/voxel_brush.rs:178
↓ 2 callers
Function
farthest_point
(p: &Point3<f32>, others: &[Point3<f32>])
src/geometry.rs:90
↓ 2 callers
Function
generate_mesh_vertices_with_surface_nets
( voxel_map: &VoxelMap, chunk_extent: &Extent3i, local_chunk_cache: &LocalVoxelCache, )
src/voxel/meshing.rs:28
↓ 2 callers
Method
get_camera_ray
(&self, x: f32, y: f32)
src/bin/editor/control/camera/data.rs:30
↓ 2 callers
Method
get_main_camera
(&self)
src/bin/editor/control/camera/data.rs:23
↓ 2 callers
Method
get_position_at_radius
(&self, radius: f32)
src/bin/editor/control/camera/state.rs:54
↓ 2 callers
Method
get_voxel_type_info
(&self, voxel_type: VoxelType)
src/voxel.rs:90
↓ 2 callers
Function
greedy_path_with_l1_and_linear_heuristic
Finds a path from `start` to `finish` along voxels. Prioritizes staying close to the line from `start` to `finish`, so you should get a path like: ``
src/voxel/search.rs:23
↓ 2 callers
Method
scale_radius
(&mut self, s: f32, config: &ThirdPersonControlConfig)
src/bin/editor/control/camera/state.rs:74
↓ 2 callers
Function
screen_ray
( camera: &Camera, camera_tfm: &Transform, dims: &ScreenDimensions, cursor_pos: Point2<f32>, )
src/geometry.rs:207
↓ 2 callers
Method
set_pitch
(&mut self, pitch: f32)
src/geometry.rs:194
↓ 2 callers
Method
set_radius
(&mut self, radius: f32, config: &ThirdPersonControlConfig)
src/bin/editor/control/camera/state.rs:62
↓ 2 callers
Method
set_vector
(&mut self, v: &Vector3<f32>)
src/geometry.rs:180
↓ 2 callers
Method
set_yaw
(&mut self, yaw: f32)
src/geometry.rs:186
↓ 2 callers
Method
start_loading_chunk
( &self, vertices: IndexedPosColorNormVertices, progress: &mut ProgressCounter, )
src/voxel/meshing/loader.rs:55
↓ 2 callers
Method
transform
(&self)
src/bin/editor/control/camera/state.rs:89
↓ 2 callers
Method
update_chunk_mesh_entities
( &mut self, chunk_key: Point3i, mesh: Option<ChunkMesh>, array_materials: &Ha
src/voxel/meshing/manager.rs:43
↓ 2 callers
Function
upgrade_ray
(old_ray: nc_old::query::Ray<f32>)
src/geometry.rs:227
↓ 2 callers
Function
voxel_is_on_top_of_floor
True if the voxel at `p` is not a floor voxel AND the voxel directly under `p` is a floor voxel.
src/collision/floor_translation.rs:61
↓ 1 callers
Function
_floor_drag_translation
( drag_plane: &Plane, prev_screen_ray: &Line, screen_ray: &Line, )
src/bin/editor/control/camera/input.rs:145
↓ 1 callers
Method
add_pitch
(&mut self, dpitch: f32)
src/bin/editor/control/camera/state.rs:66
↓ 1 callers
Method
add_yaw
(&mut self, dyaw: f32)
src/bin/editor/control/camera/state.rs:70
↓ 1 callers
Method
apply_input
( &mut self, config: &ThirdPersonControlConfig, mut cam_state: ThirdPersonCameraState,
src/bin/editor/control/camera/colliding_controller.rs:69
↓ 1 callers
Function
assert_relative_eq_vector3
(v1: &Vector3<f32>, v2: &Vector3<f32>)
src/test_util.rs:24
↓ 1 callers
Method
build
( self, world: &mut World, dispatcher: &mut DispatcherBuilder<'a, 'b>, )
src/voxel/bundle.rs:21
↓ 1 callers
Function
centered_extent
(center: Point3i, radius: u32)
src/voxel.rs:172
↓ 1 callers
Method
contains_point
(&self, p: &Point3<f32>)
src/geometry.rs:79
↓ 1 callers
Method
destroy
(&mut self)
src/voxel/meshing/manager.rs:92
↓ 1 callers
Function
download_file_from_google_drive
(file_id, destination)
run/google_drive.py:3
↓ 1 callers
Method
drag_plane
(&self)
src/bin/editor/control/camera/state.rs:110
↓ 1 callers
Method
edit_voxels_out_of_place
This function does read-modify-write of the voxels in `extent`, reading from `reader` and writing into the backbuffer. This enables parallelism betwee
src/voxel/double_buffer.rs:31
↓ 1 callers
Function
empty_array
(extent: Extent3i)
src/voxel.rs:192
↓ 1 callers
Function
empty_chunk_hash_map
()
src/voxel.rs:188
↓ 1 callers
Function
empty_compressible_chunk_map
()
src/voxel.rs:180
↓ 1 callers
Method
find_start_of_sphere_cast
Try to find the ideal location to cast a sphere from.
src/bin/editor/control/camera/colliding_controller.rs:145
↓ 1 callers
Function
find_start_of_sphere_cast_in_range
Choose the point in the range that has the best chance of casting the sphere farthest, i.e. a point that's close to the end of the range, but not too
src/bin/editor/control/camera/colliding_controller.rs:292
↓ 1 callers
Method
find_start_of_sphere_cast_in_ranges
For each unobstructed range, choose a point in that range as a member of the candidate set. From that set, take the candidate which is closest to the
src/bin/editor/control/camera/colliding_controller.rs:189
↓ 1 callers
Function
floor_drag_translation
( drag_plane: &Plane, floor_plane: &Plane, camera: &Camera, camera_tfm: &Transform, dims:
src/bin/editor/control/camera/input.rs:125
↓ 1 callers
Method
floor_plane
(&self)
src/bin/editor/control/camera/state.rs:103
↓ 1 callers
Function
generate_mesh_vertices_with_greedy_quads
( voxel_map: &VoxelMap, chunk_extent: &Extent3i, local_chunk_cache: &LocalVoxelCache, )
src/voxel/meshing.rs:97
↓ 1 callers
Method
get_actual_radius
(&self)
src/bin/editor/control/camera/state.rs:50
↓ 1 callers
Method
get_camera_radius_scalar_from_mouse_wheel_events
( &mut self, events: &[InputEvent<B>], )
src/bin/editor/control/camera/input.rs:50
↓ 1 callers
Function
get_confirm_token
(response)
run/google_drive.py:17
↓ 1 callers
Method
get_desired_position
(&self)
src/bin/editor/control/camera/state.rs:58
↓ 1 callers
Method
get_pitch
(&self)
src/geometry.rs:202
↓ 1 callers
Method
get_yaw
(&self)
src/geometry.rs:190
↓ 1 callers
Method
grow
(&mut self, p: &Point3<f32>)
src/geometry.rs:85
↓ 1 callers
Method
hover_adjacent_point
Returns the point of the adjacent voxel that shares a face with the voxel that was hit by the ray.
src/bin/editor/control/hover_3d.rs:47
↓ 1 callers
Method
hover_face
Returns the normal vector of the face that the ray hit first.
src/bin/editor/control/hover_3d.rs:39
↓ 1 callers
Function
insert_all_chunk_bvts
( bvt: &mut VoxelBVT, voxel_map: &VoxelMap, chunk_cache: &LocalVoxelCache, )
src/collision.rs:9
↓ 1 callers
Function
integer_points_on_line_segment_3d
( start: &Point3<f32>, velocity: &Vector3<f32>, t_0: f32, t_f: f32, )
src/collision/floor_translation.rs:38
↓ 1 callers
Function
key_is_number
(code: VirtualKeyCode)
src/bin/editor/voxel_brush.rs:220
↓ 1 callers
Function
key_number
(code: VirtualKeyCode)
src/bin/editor/voxel_brush.rs:216
↓ 1 callers
Function
load_voxel_map
(path: impl AsRef<Path>)
src/voxel/map_file.rs:23
↓ 1 callers
Method
look_at
(&self)
src/bin/editor/control/camera/state.rs:78
↓ 1 callers
Method
make_all_chunk_mesh_entities
Similar to VoxelChunkProcessorSystem::run, but it runs on every chunk loaded in the map, and expects that mesh assets are finished loading.
src/voxel/meshing/manager.rs:25
↓ 1 callers
Function
make_camera
(position: Point3<f32>, target: Point3<f32>, world: &mut World)
src/bin/editor/control/camera.rs:40
↓ 1 callers
Function
make_camera_feet_lines
(world: &mut World)
src/bin/editor/debug_feet.rs:40
↓ 1 callers
Function
make_gridlines
(num_grid_lines: usize, world: &mut World)
src/bin/editor/only_state.rs:113
↓ 1 callers
Function
make_hover_hint_lines
(world: &mut World)
src/bin/editor/hover_hint.rs:18
↓ 1 callers
Method
make_voxel_mesh_entity
Creates a new entity with the given mesh and material. Expects the mesh vertices to already be in world coordinates, so the model transform can be the
src/voxel/meshing/manager.rs:76
↓ 1 callers
Function
material_weights
Returns the material weights for each of the points in `surface_strides`. Uses a 2x2x2 kernel (the same shape as the Surface Nets kernel) to average
src/voxel/meshing.rs:153
↓ 1 callers
Function
move_ball_until_collision
( voxel_bvt: &VoxelBVT, ball_radius: f32, start: Point3<f32>, end: Point3<f32>, )
src/bin/editor/control/camera/colliding_controller.rs:385
↓ 1 callers
Method
point
(&self)
src/bin/editor/control/hover_3d.rs:34
↓ 1 callers
Function
point_is_obstructed
Figure out if point p is obstructed, which is the case if: 1. The point strays too far from the eye line. 2. The voxel projection of the point on the
src/bin/editor/control/camera/colliding_controller.rs:358
↓ 1 callers
Method
process_input
( &mut self, input: &InputHandler<B>, events: &[InputEvent<B>], drag_plane: &P
src/bin/editor/control/camera/input.rs:73
↓ 1 callers
Function
read_bincode_file
( path: P, )
src/assets.rs:106
↓ 1 callers
Method
resolve_camera_collisions
( &mut self, config: &CameraCollisionConfig, voxel_is_empty_fn: &impl Fn(&Point3i) ->
src/bin/editor/control/camera/colliding_controller.rs:100
↓ 1 callers
Function
ritter_sphere_bounding_points
(points: &[Point3<f32>])
src/geometry.rs:100
↓ 1 callers
Function
ritter_sphere_bounding_positions
(positions: &[Position])
src/geometry.rs:118
↓ 1 callers
Method
run
(&mut self, (objects, is_hint, mut debug_lines): Self::SystemData)
src/bin/editor/hover_hint.rs:35
↓ 1 callers
Function
run_app
(map_file: PathBuf)
src/bin/editor/main.rs:36
↓ 1 callers
Function
save_response_content
(response, destination)
run/google_drive.py:24
↓ 1 callers
Function
set_desired_camera_position
( input: &ProcessedInput, colliding: bool, config: &ThirdPersonControlConfig, cam_state: &mut
src/bin/editor/control/camera/colliding_controller.rs:265
↓ 1 callers
Method
set_last_empty_feet_voxel
( &mut self, voxel_is_empty_fn: &impl Fn(&Point3i) -> bool, new_feet: Point3i, )
src/bin/editor/control/camera/colliding_controller.rs:249
↓ 1 callers
Method
smooth_transform
(&mut self, new_state: &ThirdPersonCameraState)
src/bin/editor/control/camera/smoother.rs:21
↓ 1 callers
Method
start_loading
( &mut self, map: &VoxelMap, chunk_cache: &LocalVoxelCache, progress: &mut Pro
src/voxel/asset_loader.rs:20
↓ 1 callers
Method
start_loading_all_chunks
( &mut self, voxel_map: &VoxelMap, chunk_cache: &LocalVoxelCache, progress: &m
src/voxel/meshing/loader.rs:30
↓ 1 callers
Method
start_loading_materials
( &mut self, material_array_set: &HashMap<usize, String>, progress: &mut ProgressCount
src/voxel/asset_loader.rs:38
next →
1–100 of 166, ranked by callers