I have made a crude hack which make position objects a bit easier. It let you move a tiny sphere with your right Touch controller. Pressing the 'B' button will record the spheres XYZ position to a text file located in this directory:
C:\Users\[USERNAME]\AppData\Local\AGKApps\[GAMETITLE]\media\positionSaveFile.txt
The content in the text file is something like this:
SetObjectPosition ( YOUROBJECT, -0.092283, 1.489935, 0.297176 )
To use, simply copypaste this code into your game:
//CRUDE POSITION HACK
// Clicking the B button on the right Touch controller will
// save the touch position in a text file located at this directory:
// C:\Users\[USERNAME]\AppData\Local\AGKApps\[GAMETITLE]\media\
crudePositionHackSphere = CreateObjectSphere( 0.003, 8, 8 )
SetObjectColorEmissive( crudePositionHackSphere, 64, 64, 64 )
SetObjectColor (crudePositionHackSphere, 128,128,128,255)
#constant BNOTCLICKED = 0
#constant BCLICKED = 1
B_is_clicked as integer = BNOTCLICKED
And also this code, which should be placed in your games do loop:
//CRUDE POSITION HACK
SetObjectPosition (crudePositionHackSphere, AGKVR.GetRightHandX(), AGKVR.GetRightHandY(), AGKVR.GetRightHandZ())
if AGKVR.RightController_Button1()
if B_is_clicked = BNOTCLICKED
positionSaveFile = OpenToWrite( "positionSaveFile.txt" , 0)
WriteLine(positionSaveFile, "SetObjectPosition ( YOUROBJECT, " + Str( AGKVR.GetRightHandX()) + ", " + Str( AGKVR.GetRightHandY()) + ", " + Str( AGKVR.GetRightHandZ()) + " )" )
CloseFile(positionSaveFile)
SetObjectColorEmissive( crudePositionHackSphere, 128, 255, 128 )
B_is_clicked = BCLICKED
endif
else
B_is_clicked = BNOTCLICKED
SetObjectColorEmissive( crudePositionHackSphere, 128, 128, 128 )
endif
This works, but is way crude. Optionally, I should pick up the stuff I want to move, and also be able to change its rotation. And automatically update the code with the new position and rotation.