+ SCM
+ irr_scene_createFlyCircleAnimator (SCM wrapped_scene_manager,
+ SCM rest)
+ {
+ SCM center = scm_list_3 (scm_from_double (0),
+ scm_from_double (0),
+ scm_from_double (0));
+ SCM radius = scm_from_double (100);
+ SCM speed = scm_from_double (0.001);
+ SCM direction = scm_list_3 (scm_from_double (0),
+ scm_from_double (1),
+ scm_from_double (0));
+ SCM start_position = scm_from_double (0);
+ SCM radius_ellipsoid = scm_from_double (0);
+
+ scm_c_bind_keyword_arguments ("create-fly-circle-animator", rest, (scm_t_keyword_arguments_flags)0,
+ scm_from_utf8_keyword ("center"), ¢er,
+ scm_from_utf8_keyword ("radius"), &radius,
+ scm_from_utf8_keyword ("speed"), &speed,
+ scm_from_utf8_keyword ("direction"), &direction,
+ scm_from_utf8_keyword ("start-position"), &start_position,
+ scm_from_utf8_keyword ("radius-ellipsoid"), &radius_ellipsoid,
+ SCM_UNDEFINED);
+
+ irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
+ irr::scene::ISceneNodeAnimator* anim =
+ smgr->createFlyCircleAnimator (scm_to_vector3df (center),
+ scm_to_double (radius),
+ scm_to_double (speed),
+ scm_to_vector3df (direction),
+ scm_to_double (start_position),
+ scm_to_double (radius_ellipsoid));
+ return wrap_scene_node_animator (anim);
+ }
+
+ SCM
+ irr_scene_createFlyStraightAnimator (SCM wrapped_scene_manager,
+ SCM start_point,
+ SCM end_point,
+ SCM time_for_way,
+ SCM rest)
+ {
+ SCM loop = SCM_BOOL_F;
+ SCM pingpong = SCM_BOOL_F;
+
+ scm_c_bind_keyword_arguments ("create-fly-straight-animator", rest, (scm_t_keyword_arguments_flags)0,
+ scm_from_utf8_keyword ("loop"), &loop,
+ scm_from_utf8_keyword ("pingpong"), &pingpong,
+ SCM_UNDEFINED);
+
+ irr::scene::ISceneManager* smgr = unwrap_scene_manager (wrapped_scene_manager);
+ irr::scene::ISceneNodeAnimator* anim =
+ smgr->createFlyStraightAnimator (scm_to_vector3df (start_point),
+ scm_to_vector3df (end_point),
+ scm_to_uint32 (time_for_way),
+ scm_to_bool (loop),
+ scm_to_bool (pingpong));
+ return wrap_scene_node_animator (anim);
+ }
+