Add Vector3:Floor()

This commit is contained in:
ZachCurtis 2024-07-16 01:38:47 -04:00
parent 24b28e5c2f
commit 1a0492d0b5

View file

@ -135,6 +135,7 @@ impl LuaUserData for Vector3 {
});
methods.add_method("Abs", |_, this, ()| Ok(Vector3(this.0.abs())));
methods.add_method("Ceil", |_, this, ()| Ok(Vector3(this.0.ceil())));
methods.add_method("Floor", |_, this, ()| Ok(Vector3(this.0.floor())));
// Metamethods
methods.add_meta_method(LuaMetaMethod::Eq, userdata_impl_eq);
methods.add_meta_method(LuaMetaMethod::ToString, userdata_impl_to_string);