forked from StrafesNET/roblox-bot-player
delete get_angles
This commit is contained in:
@@ -193,13 +193,6 @@ impl PlaybackHead{
|
|||||||
pub fn get_game_controls(&self)->u32{
|
pub fn get_game_controls(&self)->u32{
|
||||||
self.head.state().get_controls().bits()
|
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();
|
|
||||||
let angles=self.head.get_angles(&bot.bot,time);
|
|
||||||
angles.to_array().to_vec()
|
|
||||||
}
|
|
||||||
/// Returns the camera angles yaw delta between the last game tick and the most recent game tick.
|
/// Returns the camera angles yaw delta between the last game tick and the most recent game tick.
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn get_angles_yaw_delta(&self)->f32{
|
pub fn get_angles_yaw_delta(&self)->f32{
|
||||||
|
|||||||
Reference in New Issue
Block a user