MCPcopy Index your code

hub / github.com/amethyst/voxel-mapper / functions

Functions166 in github.com/amethyst/voxel-mapper

↓ 9 callersFunctioninteger_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 callersFunctionvoxel_containing_point
(p: na::Point3<f32>)
src/voxel.rs:166
↓ 8 callersFunctionyaw_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 callersFunctionassert_relative_eq_vec
(v1: &Vec<f32>, v2: &Vec<f32>)
src/test_util.rs:17
↓ 6 callersFunctiontranslate_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 callersFunctionassert_relative_eq_point3
(p1: &Point3<f32>, p2: &Point3<f32>)
src/test_util.rs:30
↓ 5 callersMethodbuild
(self, world: &mut World)
src/bin/editor/control/camera.rs:168
↓ 5 callersFunctionempty_voxels
()
src/collision/floor_translation.rs:249
↓ 5 callersFunctionmake_floor_strip
(voxels: &mut ChunkedLatticeMap<TestVoxel>)
src/collision/floor_translation.rs:253
↓ 5 callersFunctionproject_point_onto_line
(p: &Point3<f32>, line: &Line)
src/geometry.rs:59
↓ 4 callersMethodis_empty
(&self)
src/voxel.rs:104
↓ 4 callersMethodis_floor
(&self)
src/collision/floor_translation.rs:244
↓ 4 callersFunctionmake_bump
(voxels: &mut ChunkedLatticeMap<TestVoxel>)
src/collision/floor_translation.rs:269
↓ 4 callersFunctionmake_sunlight
(position: [f32; 3], intensity: f32, world: &mut World)
src/bin/editor/only_state.rs:137
↓ 4 callersMethodvoxel_info_transform
(&'a self)
src/voxel.rs:43
↓ 3 callersFunctionfind_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 callersMethodflush
(&self, cache: LocalVoxelCache)
src/voxel/chunk_cache_flusher.rs:15
↓ 3 callersFunctionline_plane_intersection
(l: &Line, p: &Plane)
src/geometry.rs:42
↓ 3 callersMethodunit_vector
(self)
src/geometry.rs:176
↓ 3 callersFunctionvertical_probe
POTENTIAL BUG: can skip over non-floor voxels in a column
src/collision/floor_translation.rs:77
↓ 3 callersFunctionvoxel_center
(p: Point3i)
src/voxel.rs:162
↓ 2 callersFunctionedit_sphere
( operation: SetVoxelOperation, center: Point3i, radius: u32, voxel_type: VoxelType, map_r
src/bin/editor/voxel_brush.rs:178
↓ 2 callersFunctionfarthest_point
(p: &Point3<f32>, others: &[Point3<f32>])
src/geometry.rs:90
↓ 2 callersFunctiongenerate_mesh_vertices_with_surface_nets
( voxel_map: &VoxelMap, chunk_extent: &Extent3i, local_chunk_cache: &LocalVoxelCache, )
src/voxel/meshing.rs:28
↓ 2 callersMethodget_camera_ray
(&self, x: f32, y: f32)
src/bin/editor/control/camera/data.rs:30
↓ 2 callersMethodget_main_camera
(&self)
src/bin/editor/control/camera/data.rs:23
↓ 2 callersMethodget_position_at_radius
(&self, radius: f32)
src/bin/editor/control/camera/state.rs:54
↓ 2 callersMethodget_voxel_type_info
(&self, voxel_type: VoxelType)
src/voxel.rs:90
↓ 2 callersFunctiongreedy_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 callersMethodscale_radius
(&mut self, s: f32, config: &ThirdPersonControlConfig)
src/bin/editor/control/camera/state.rs:74
↓ 2 callersFunctionscreen_ray
( camera: &Camera, camera_tfm: &Transform, dims: &ScreenDimensions, cursor_pos: Point2<f32>, )
src/geometry.rs:207
↓ 2 callersMethodset_pitch
(&mut self, pitch: f32)
src/geometry.rs:194
↓ 2 callersMethodset_radius
(&mut self, radius: f32, config: &ThirdPersonControlConfig)
src/bin/editor/control/camera/state.rs:62
↓ 2 callersMethodset_vector
(&mut self, v: &Vector3<f32>)
src/geometry.rs:180
↓ 2 callersMethodset_yaw
(&mut self, yaw: f32)
src/geometry.rs:186
↓ 2 callersMethodstart_loading_chunk
( &self, vertices: IndexedPosColorNormVertices, progress: &mut ProgressCounter, )
src/voxel/meshing/loader.rs:55
↓ 2 callersMethodtransform
(&self)
src/bin/editor/control/camera/state.rs:89
↓ 2 callersMethodupdate_chunk_mesh_entities
( &mut self, chunk_key: Point3i, mesh: Option<ChunkMesh>, array_materials: &Ha
src/voxel/meshing/manager.rs:43
↓ 2 callersFunctionupgrade_ray
(old_ray: nc_old::query::Ray<f32>)
src/geometry.rs:227
↓ 2 callersFunctionvoxel_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 callersFunction_floor_drag_translation
( drag_plane: &Plane, prev_screen_ray: &Line, screen_ray: &Line, )
src/bin/editor/control/camera/input.rs:145
↓ 1 callersMethodadd_pitch
(&mut self, dpitch: f32)
src/bin/editor/control/camera/state.rs:66
↓ 1 callersMethodadd_yaw
(&mut self, dyaw: f32)
src/bin/editor/control/camera/state.rs:70
↓ 1 callersMethodapply_input
( &mut self, config: &ThirdPersonControlConfig, mut cam_state: ThirdPersonCameraState,
src/bin/editor/control/camera/colliding_controller.rs:69
↓ 1 callersFunctionassert_relative_eq_vector3
(v1: &Vector3<f32>, v2: &Vector3<f32>)
src/test_util.rs:24
↓ 1 callersMethodbuild
( self, world: &mut World, dispatcher: &mut DispatcherBuilder<'a, 'b>, )
src/voxel/bundle.rs:21
↓ 1 callersFunctioncentered_extent
(center: Point3i, radius: u32)
src/voxel.rs:172
↓ 1 callersMethodcontains_point
(&self, p: &Point3<f32>)
src/geometry.rs:79
↓ 1 callersMethoddestroy
(&mut self)
src/voxel/meshing/manager.rs:92
↓ 1 callersFunctiondownload_file_from_google_drive
(file_id, destination)
run/google_drive.py:3
↓ 1 callersMethoddrag_plane
(&self)
src/bin/editor/control/camera/state.rs:110
↓ 1 callersMethodedit_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 callersFunctionempty_array
(extent: Extent3i)
src/voxel.rs:192
↓ 1 callersFunctionempty_chunk_hash_map
()
src/voxel.rs:188
↓ 1 callersFunctionempty_compressible_chunk_map
()
src/voxel.rs:180
↓ 1 callersMethodfind_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 callersFunctionfind_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 callersMethodfind_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 callersFunctionfloor_drag_translation
( drag_plane: &Plane, floor_plane: &Plane, camera: &Camera, camera_tfm: &Transform, dims:
src/bin/editor/control/camera/input.rs:125
↓ 1 callersMethodfloor_plane
(&self)
src/bin/editor/control/camera/state.rs:103
↓ 1 callersFunctiongenerate_mesh_vertices_with_greedy_quads
( voxel_map: &VoxelMap, chunk_extent: &Extent3i, local_chunk_cache: &LocalVoxelCache, )
src/voxel/meshing.rs:97
↓ 1 callersMethodget_actual_radius
(&self)
src/bin/editor/control/camera/state.rs:50
↓ 1 callersMethodget_camera_radius_scalar_from_mouse_wheel_events
( &mut self, events: &[InputEvent<B>], )
src/bin/editor/control/camera/input.rs:50
↓ 1 callersFunctionget_confirm_token
(response)
run/google_drive.py:17
↓ 1 callersMethodget_desired_position
(&self)
src/bin/editor/control/camera/state.rs:58
↓ 1 callersMethodget_pitch
(&self)
src/geometry.rs:202
↓ 1 callersMethodget_yaw
(&self)
src/geometry.rs:190
↓ 1 callersMethodgrow
(&mut self, p: &Point3<f32>)
src/geometry.rs:85
↓ 1 callersMethodhover_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 callersMethodhover_face
Returns the normal vector of the face that the ray hit first.
src/bin/editor/control/hover_3d.rs:39
↓ 1 callersFunctioninsert_all_chunk_bvts
( bvt: &mut VoxelBVT, voxel_map: &VoxelMap, chunk_cache: &LocalVoxelCache, )
src/collision.rs:9
↓ 1 callersFunctioninteger_points_on_line_segment_3d
( start: &Point3<f32>, velocity: &Vector3<f32>, t_0: f32, t_f: f32, )
src/collision/floor_translation.rs:38
↓ 1 callersFunctionkey_is_number
(code: VirtualKeyCode)
src/bin/editor/voxel_brush.rs:220
↓ 1 callersFunctionkey_number
(code: VirtualKeyCode)
src/bin/editor/voxel_brush.rs:216
↓ 1 callersFunctionload_voxel_map
(path: impl AsRef<Path>)
src/voxel/map_file.rs:23
↓ 1 callersMethodlook_at
(&self)
src/bin/editor/control/camera/state.rs:78
↓ 1 callersMethodmake_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 callersFunctionmake_camera
(position: Point3<f32>, target: Point3<f32>, world: &mut World)
src/bin/editor/control/camera.rs:40
↓ 1 callersFunctionmake_camera_feet_lines
(world: &mut World)
src/bin/editor/debug_feet.rs:40
↓ 1 callersFunctionmake_gridlines
(num_grid_lines: usize, world: &mut World)
src/bin/editor/only_state.rs:113
↓ 1 callersFunctionmake_hover_hint_lines
(world: &mut World)
src/bin/editor/hover_hint.rs:18
↓ 1 callersMethodmake_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 callersFunctionmaterial_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 callersFunctionmove_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 callersMethodpoint
(&self)
src/bin/editor/control/hover_3d.rs:34
↓ 1 callersFunctionpoint_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 callersMethodprocess_input
( &mut self, input: &InputHandler<B>, events: &[InputEvent<B>], drag_plane: &P
src/bin/editor/control/camera/input.rs:73
↓ 1 callersFunctionread_bincode_file
( path: P, )
src/assets.rs:106
↓ 1 callersMethodresolve_camera_collisions
( &mut self, config: &CameraCollisionConfig, voxel_is_empty_fn: &impl Fn(&Point3i) ->
src/bin/editor/control/camera/colliding_controller.rs:100
↓ 1 callersFunctionritter_sphere_bounding_points
(points: &[Point3<f32>])
src/geometry.rs:100
↓ 1 callersFunctionritter_sphere_bounding_positions
(positions: &[Position])
src/geometry.rs:118
↓ 1 callersMethodrun
(&mut self, (objects, is_hint, mut debug_lines): Self::SystemData)
src/bin/editor/hover_hint.rs:35
↓ 1 callersFunctionrun_app
(map_file: PathBuf)
src/bin/editor/main.rs:36
↓ 1 callersFunctionsave_response_content
(response, destination)
run/google_drive.py:24
↓ 1 callersFunctionset_desired_camera_position
( input: &ProcessedInput, colliding: bool, config: &ThirdPersonControlConfig, cam_state: &mut
src/bin/editor/control/camera/colliding_controller.rs:265
↓ 1 callersMethodset_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 callersMethodsmooth_transform
(&mut self, new_state: &ThirdPersonCameraState)
src/bin/editor/control/camera/smoother.rs:21
↓ 1 callersMethodstart_loading
( &mut self, map: &VoxelMap, chunk_cache: &LocalVoxelCache, progress: &mut Pro
src/voxel/asset_loader.rs:20
↓ 1 callersMethodstart_loading_all_chunks
( &mut self, voxel_map: &VoxelMap, chunk_cache: &LocalVoxelCache, progress: &m
src/voxel/meshing/loader.rs:30
↓ 1 callersMethodstart_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