Jump to content

Recommended Posts

Posted

Hello,

 

How can i set the camera via the LoSetCameraPosition() Lua command?

 

Currently i am getting the Camera Position/Orientation in the LuaAfterNextFrame() function in the export.lua.

 

local CameraPosition
CameraPosition = LoGetCameraPosition()

log_file:write(CameraPosition.x.x)

This writes the correct x rotation of the camera.

If i try now to set the camera it does not change orientation.

 

CameraPosition.x.x = 0
LoSetCameraPosition(CameraPosition)

Any help?

 

Thanks in advance!

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...