Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.1 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.1 KB

GorbatovCameraSwitcherPlugin

image

plugin for store.unigine.com

The plugin allows switching between all existing cameras by pressing the c button.

This plugin works with float/double precision on windows/linux.

There are three ways to add this plugin to your application:

  1. Add GorbatovCameraSwitcher in the -extern_plugin startup comand-line args. For example: -extern_plugin UnigineFbxImporter,GorbatovCameraSwitcher

  2. Call the plugin from code by adding Engine::get()->addPlugin("GorbatovCameraSwitcher");

  3. Add plugin's sources in your project build and call Engine::get()->addPlugin(new CameraSwitcherPlugin());

how to rebuild

  • copy this repo in your porject or install the package from assetstore
  • use cmake to build. For example for debug-double use this commands
cmake -B ./build-debug-double -S source/plugins/Gorbatov/CameraSwitcher -DUNIGINE_DOUBLE=1 -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build-debug-double