wasm-module: add get_angles doc

This commit is contained in:
2026-03-06 19:04:37 -08:00
parent e0a8175355
commit 495092f79f

View File

@@ -183,6 +183,7 @@ impl PlaybackHead{
pub fn get_game_controls(&self)->u32{
self.head.state().get_controls().bits()
}
/// Returns an array of [pitch, yaw, roll] in radians. Yaw is not restricted to any particular range.
#[wasm_bindgen]
pub fn get_angles(&self,bot:&CompleteBot,time:f64)->Vec<f32>{
let time=time::from_float(time).unwrap();