(AGK version: 2019.12.16)
Submitted: 2020-04-19 01:40:21
// set window properties
SetWindowSize( 1080, 720, 0 )

// set display properties
SetVirtualResolution( 1080, 720 ) 
SetOrientationAllowed( 1, 1, 1, 1 ) 

SetScissor( 0,0,0,0 )
UseNewDefaultFonts( 1 ) 

Create3DPhysicsWorld()

cube = CreateObjectBox(40, 40, 40)
	Create3DPhysicsDynamicBody(cube)
	SetObjectShapeBox(cube)
	SetObjectColor(cube, 255,0,0,255)

// saves to media folder and adds .bcs file extension automatically. 04/18/20
this = SaveObjectShape(cube, "this") // will save as "this.bcs". will crash in debug mode
	added = LoadObjectShape(cube,"this.bcs") //will also crash in debug mode

ground = CreateObjectBox(100,10,100)
	SetObjectPosition(ground,0,-50,0)
	Create3DPhysicsStaticBody(ground)

SetCameraPosition(1, 0, 50, -100)
	SetCameraLookAt(1, 0, 0, 0, 0)

repeat	

	print(this)
	print (added)
	
	Step3DPhysicsWorld()									
    Sync()
until GetRawKeyPressed(27) `[ESC]
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.