New Lua Scripting (#501)
* New Lua Scripting System * Update Scripts * Small fix on wiLua Globals * Add One More Note To The New Demo * -path fix -renamed new_script_demo.lua to script_tracking.lua -refactors -version bump to 0.71.0 * removed GetScriptPath() Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ backlog_post("---> START SCRIPT: move_object.lua")
|
||||
|
||||
scene = GetScene()
|
||||
scene.Clear()
|
||||
LoadModel("../models/teapot.wiscene")
|
||||
LoadModel(script_dir() .. "../models/teapot.wiscene")
|
||||
top_entity = scene.Entity_FindByName("Top") -- query the teapot lid object by name
|
||||
transform_component = scene.Component_GetTransform(top_entity)
|
||||
rest_matrix = transform_component.GetMatrix()
|
||||
|
||||
Reference in New Issue
Block a user