Module utils

Source
Expand description

Utilities module provides set of commonly used algorithms.

Modules§

astar
Contains classic A* (A-star) path finding algorithms.
behavior
Everything related to AI behavior and behavior trees.
lightmap
Module to generate lightmaps for surfaces.
navmesh
Contains all structures and methods to create and manage navigation meshes (navmesh).
raw_mesh
Raw mesh is a procedural mesh builder, all you can do with it is to insert vertices one-by-one and it will automatically build faces by skipping duplicated vertices. Main usage of it - optimize “triangle soup” into mesh so adjacent faces will have shared edges. Raw mesh itself does not have any methods, it is just a final result of RawMeshBuilder.
uvgen
UV generation utils.

Functions§

into_any_arc
Helper function to convert Option<Arc<T>> to Option<Arc<dyn Any>>.
translate_button
Translates window mouse button into fyrox-ui mouse button.
translate_cursor_icon
Translates cursor icon from fyrox-ui library to glutin format.
translate_event
Translates window event to fyrox-ui event.
translate_key_from_ui
Translates fyrox-ui’s key code to winit’s.
translate_key_to_ui
Translates winit’s key code to fyrox-ui’s key code.
translate_keyboard_modifiers
Translates keyboard modifiers to fyrox-ui keyboard modifiers.
translate_state
Translates library button state into fyrox-ui button state.
vec3_f16_from_f32
Converts Vector3<f32> -> Vector3<f16>.
vec3_f32_from_f16
Converts Vector3<f16> -> Vector3<f32>.
virtual_key_code_name
Maps key code to its name. Can be useful if you making adjustable key bindings in your game and you need quickly map key code to its name.