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.
- log
- Simple logger, it writes in file and in console at the same time.
- 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 Map generator. Used to generate second texture coordinates for lightmaps.
Functions§
- array_
as_ u8_ slice - “Transmutes” array of any sized type to a slice of bytes.
- hash_
as_ bytes - Performs hashing of a sized value by interpreting it as raw memory.
- into_
any_ arc - Helper function to convert Option<Arc
> to Option<Arc >. - into_
gui_ texture - Converts engine’s optional texture “pointer” to rg3d-ui’s.
- translate_
button - Translates window mouse button into rg3d-ui mouse button.
- translate_
cursor_ icon - Translates cursor icon from rg3d-ui library to glutin format.
- translate_
event - Translates window event to rg3d-ui event.
- translate_
key - Translated key code to rg3d-ui key code.
- translate_
keyboard_ modifiers - Translates keyboard modifiers to rg3d-ui keyboard modifiers.
- translate_
state - Translates library button state into rg3d-ui button state.
- value_
as_ u8_ slice - “Transmutes” value of any sized type to a slice of bytes.
- 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.