By this I mean is there a file where I can just add some lines that
say "Wall(2,5,25,23)" for a position and rotation. Then I could
replace the default environment that it loads with this file, and
switch between environments by changing their filenames?
--Igor.
### Wall template
## x_offset = 0
## y_offset = -100
## z_offset = 0
## x_rotation = 0
## y_rotation = 0
## z_rotation = 45 #rotation about the z-axis...use this
## x_scale = 1 #thickness
## y_scale = 1 #length
## z_scale = 1 #height
##
## common.addObject(
## "data/shapes/cube/Cube.xml",
## OpenNero.Vector3f(constants.XDIM/2 + x_offset,
constants.YDIM/2 + y_offset, height + z_offset),
## OpenNero.Vector3f(x_rotation, y_rotation, z_rotation),
#orientation vector
## scale=OpenNero.Vector3f(constants.WIDTH * x_scale,
constants.YDIM / 4 * y_scale, constants.HEIGHT*2 * z_scale),
## label="World Wall4",
## type=constants.OBJECT_TYPE_OBSTACLE)
### Turret template
## x_offset = 100
## y_offset = -50
## z_offset = 0
## x_scale = 1
## y_scale = 1
## z_scale = 1
##
## common.addObject(
## "data/shapes/character/steve_basic_turret.xml",
## OpenNero.Vector3f(constants.XDIM/2 + x_offset,
constants.YDIM/2 + y_offset, height + z_offset),
## OpenNero.Vector3f(0, 0, 90), #orientation vector
## scale=OpenNero.Vector3f(x_scale, y_scale, z_scale),
## label="turret_guy",
## type=constants.OBJECT_TYPE_TEAM_1)
On Dec 6, 10:19 am, Igor Karpov <ikar...@cs.utexas.edu> wrote: