Beispiel #1
0
def keyfunc3( key, mx, my, tm ):
	global sim2Outset
	if key == 'l':
		if pylon.sim_remove_object( sim2Outset.simname, sim2Outset.name ):
			print " AKHBSDjkHAKJJSD"
		rnum = 3
		sim2Outset = None
		while sim2Outset == None:
			sim2Outset = sim2.newObject("sim2Outset_"+str(tm))
		sim2Outset.setOptions( pylon.solid_stationary | pylon.solid_concave | pylon.solid_sphere )
		sim2Outset.setProperties( 0 )
		pylon.object_add_sphere( sim2Outset.simname, sim2Outset.name, 1.5, 20, 20, possibleImages[rnum], 1, 1, possibleTriProps[rnum]|pylon.triangle_invert_normals )
		sim2Outset.setVisibility(pylon.key_ispressed('v'))
		sim2Outset.build()
Beispiel #2
0
	def removeObject(self,objname):
		if pylon.sim_remove_object(self.name,objname):
			print "pylon.sim_remove_object(",self.name,",",objname,")"
			return False
		return True