@RonJeffries Heres an example showing that you can’t go negative. This starts with a Voxel sphere of radius 10 at position 10,10,10.
Run this to show the full sphere.
Comment out sphere line 1 and uncomment line 2 and run it. Part of the sphere is cut off.
Comment line 2 and uncomment line 3. Run it.
Then comment line 3 and uncomment line 4. Run it.
As the sphere moves closer to 0,0,0 the parts that go negative don’t show.
PS. Slide you finger to rotate the image.
displayMode(FULLSCREEN)
function setup()
assert(OrbitViewer, "Please include Cameras (not Camera) as a dependency")
scene = craft.scene()
viewer = scene.camera:add(OrbitViewer, vec3(0,0,0), 200, 0, 1000)
entity=scene:entity()
scene.voxels.blocks:addAssetPack("Blocks")
water = scene.voxels.blocks:new("Water")
water.setTexture(ALL, "Blocks:Water")
scene.voxels:fill("Water")
scene.voxels:resize(vec3(3,1,3))
scene.voxels.coordinates = vec3(0,0,0)
scene.voxels:sphere(10,10,10,10) -- 1
--scene.voxels:sphere(10,10,0,10) -- 2
--scene.voxels:sphere(10,0,0,10) -- 3
--scene.voxels:sphere(0,0,0,10) -- 4
end
function update(dt)
scene:update(dt)
end
function draw()
update(DeltaTime)
scene:draw()
end