mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
26 lines
922 B
Lua
26 lines
922 B
Lua
asset.onInitialize(function()
|
|
-- Avoid errors for developers when building without the touch module
|
|
if not openspace.modules.isLoaded("Touch") then
|
|
return
|
|
end
|
|
|
|
openspace.setPropertyValueSingle("Modules.Touch.EnableTouchInteraction", true)
|
|
|
|
-- A list of renderable types that apply the "direct manipulation". Works best for
|
|
-- things with a sperical-ish shape and an intearction sphere of about the same size
|
|
-- as the bounding sphere.
|
|
-- Can also be set for each scene graph node using the "IsDirectlyTouchable" property
|
|
local directTouchList = { "RenderableGlobe" }
|
|
openspace.setPropertyValueSingle("Modules.Touch.DefaultDirectTouchRenderableTypes", directTouchList)
|
|
end)
|
|
|
|
|
|
|
|
asset.meta = {
|
|
Name = "Touch Module Default Settings",
|
|
Description = "Some default settings related to the touch module",
|
|
Author = "OpenSpace Team",
|
|
URL = "http://openspaceproject.com",
|
|
License = "MIT license"
|
|
}
|