-- this loop will give gravity and spherical collision box to all objects
for i= 1,gNumObjects do
setObjectInfo(gObjects[i].cObj,IG3D_GRAVITY_MULTIPLIER, 1.1)
setObjectInfo(gObjects[i].cObj, IG3D_SHAPE, ig3d_sphere)
end

-- impulseonclick function will launch object one forward in its facing direction when the mouse is clicked

function impulseonclick()
if click("n") then
beep()
setObjectInfo(gObjects[1].cObj, IG3D_IMPULSE, -60.0+math.random()*120, 0, -60.0+math.random()*120)
end