def __init__( self, *args, **kwargs ): Base.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Name', str, T.getName, T.setName, initDefault='' ), Attr( 'Full Path', pc.Filename, T.getFullpath, self.SetTex ), parent='Texture' )
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Normal', pm.Vec3, initDefault=pm.Vec3(0, 0, 1)), Attr('Constant', int, initDefault=0), parent='BulletBoxShape')
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Shape', BCS, initDefault=BCS(0.4, 1.75 - 2 * 0.4, ZUp)), Attr('step_height', float, initDefault=0.4), Attr('Name', str), parent='BulletCharacterControllerNode')
def __init__(self, *args, **kwargs): Light.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Attenuation', pm.Vec3, PL.getAttenuation, PL.setAttenuation), Attr('Point', pm.Point3, PL.getPoint, PL.setPoint), Attr('Specular Color', pm.Vec4, PL.getSpecularColor, PL.setSpecularColor), parent='PointLight')
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Angular Damping', float, BRBN.getAngularDamping, BRBN.setAngularDamping ), Attr( 'Gravity', pm.Vec3, BRBN.getGravity, BRBN.setGravity ), Attr( 'Mass', float, BRBN.getMass, BRBN.setMass ), Cnnctn( 'Shapes', BS, BRBN.getShapes, BRBN.addShape, self.ClearShapes, BRBN.removeShape, self.data ), parent='BulletRigidBodyNode' )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Fov', pm.Vec2, Lens.getFov, Lens.setFov, self.GetLens), Attr('Near', float, Lens.getNear, Lens.setNear, self.GetLens), Attr('Far', float, Lens.getFar, Lens.setFar, self.GetLens), parent='LensNode')
def __init__( self, *args, **kwargs ): LensNode.__init__( self, *args, **kwargs ) Light.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Attenuation', pm.Vec3, SL.getAttenuation, SL.setAttenuation ), Attr( 'Exponent', float, SL.getExponent, SL.setExponent ), Attr( 'Specular Color', pm.Vec4, SL.getSpecularColor, SL.setSpecularColor ), Attr( 'Shadow Caster', bool, SL.isShadowCaster, SL.setShadowCaster ), parent='Spotlight' )
def __init__(self, *args, **kwargs): Light.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Direction', pm.Vec3, DL.getDirection, DL.setDirection), Attr('Point', pm.Point3, DL.getPoint, DL.setPoint), Attr('Specular Color', pm.Vec4, DL.getSpecularColor, DL.setSpecularColor), Attr('Shadow Caster', bool, DL.isShadowCaster, DL.setShadowCaster), parent='DirectionalLight')
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Color', pm.Vec4, pm.Fog.getColor, pm.Fog.setColor ), Attr( 'Linear Onset Point', pm.Point3, pm.Fog.getLinearOnsetPoint, pm.Fog.setLinearOnsetPoint ), Attr( 'Linear Opaque Point', pm.Point3, pm.Fog.getLinearOpaquePoint, pm.Fog.setLinearOpaquePoint ), Attr( 'Exponential Density', float, pm.Fog.getExpDensity, pm.Fog.setExpDensity ), parent='Fog' )
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('X', float, initDefault=0.5), Attr('Y', float, initDefault=0.5), Attr('Z', float, initDefault=0.5), Attr('Center', pm.Point3, CB.getCenter, CB.setCenter, initDefault=pm.Point3(0)), parent='CollisionBox')
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Origin', pm.Point3, CR.getOrigin, CR.setOrigin, initDefault=pm.Point3(0)), Attr('Direction', pm.Vec3, CR.getDirection, CR.setDirection, initDefault=pm.Vec3(0, 0, 1)), parent='CollisionRay')
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Center', pm.Point3, CS.getCenter, CS.setCenter, initDefault=pm.Point3(0)), Attr('Radius', float, CS.getRadius, CS.setRadius, initDefault=0.5), parent='CollisionSphere')
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Show Wireframe', bool, self.GetWireframe, self.SetWireframe ), parent='BulletDebugNode' )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Num Solids', int, CN.getNumSolids ), Cnnctn( 'Solids', CS, CN.getSolids, CN.addSolid, CN.clearSolids, self.RemoveSolid, self.data ), parent='CollisionNode' )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('ModelPath', pm.Filename, self.GetFullPath, initDefault=''), parent='ModelRoot')
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Half Extents', pm.Vec3, BBS.getHalfExtentsWithMargin, initDefault=pm.Vec3(0.5, 0.5, 0.5)), parent='BulletBoxShape')
def __init__( self, *args, **kwargs ): Base.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Gravity', pm.Vec3, BW.getGravity, BW.setGravity ), CnnctnList( 'Rigid Body', BRBN, BW.getRigidBodies, BW.attachRigidBody, self.ClearRigidBodies, BW.removeRigidBody, self.data ), CnnctnList( 'Character', BCCN, BW.getCharacters, BW.attachCharacter, self.ClearCharacters, BW.removeCharacter, self.data ), Cnnctn( 'Debug Node', BDN, self.GetDebugNode, BW.setDebugNode, BW.clearDebugNode, self.data ), parent='BulletWorld' )
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Point A', pm.Point3, CT.getPointA, CT.setPointA, initDefault=pm.Point3(0), initName='a'), Attr('Point B', pm.Point3, CT.getPointB, CT.setPointB, initDefault=pm.Point3(0, 0, 1), initName='db'), Attr('Radius', float, CT.getRadius, CT.setRadius, initDefault=0.5), parent='CollisionTube')
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Name', str, NP.getName, NP.setName, initDefault=''), Attr('Matrix', pm.Mat4, NP.getMat, NP.setMat), CnnctnList('Lights', pm.Light, self.GetLights, NP.setLight, NP.clearLight, NP.clearLight), Cnnctn('Texture', pm.Texture, NP.getTexture, NP.setTexture, NP.clearTexture, args=[1]), NPTCnnctn('Fog ', pm.Fog, NP.getFog, NP.setFog, NP.clearFog), Cnnctn('Shader', pc.Filename, self.GetShader, self.SetShader, NP.clearShader), parent='NodePath')
def __init__(self, *args, **kwargs): Base.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Name', str, TS.getName, TS.setName), parent='TextureStage')