adjust demo and implementation to demonstrate proper camera movement

Signed-off-by: Hartmut Seichter <hartmut@technotecture.com>
This commit is contained in:
Hartmut Seichter 2021-01-25 21:01:14 +01:00
parent 42c9fac38e
commit 2d8244386a
2 changed files with 13 additions and 2 deletions

View file

@ -56,6 +56,7 @@ void register_core_function(sol::state&,sol::table& ns)
, "column",&matrix4x4::column
, "set_identity",&matrix4x4::set_identity
, "inverse",&matrix4x4::inverse
, "identity", &matrix4x4::identity
);
ns.new_usertype<vector3>("vector3"
@ -72,6 +73,9 @@ void register_core_function(sol::state&,sol::table& ns)
,"right",&vector3::right
,"up",&vector3::up
,"down",&vector3::down
,sol::meta_function::addition,&vector3::operator+
,sol::meta_function::subtraction,&vector3::operator-
,sol::meta_function::multiplication,&vector3::operator*
);
ns.new_usertype<vector4>("vector4"