sprite Package

Ball Module

class pi3d.sprite.Ball.Ball(camera=None, light=None, shader=None, texture=None, radius=0.0, x=0.0, y=0.0, z=1000, vx=0.0, vy=0.0, decay=0.001)[source]

Bases: pi3d.shape.Sprite.ImageSprite

This class is used to take some of the functionality of the CollisionBalls demo out of the main file. It inherits from the ImageSprite class that is passed (in addition to standard Shape constructor arguments) the Shader and the [Texture] to use. In order to fit the Display dimensions the z value has to be set to 1000 This allows the Ball dimensions to be set in approximately pixel sizes


Used for pre-checking ball positions.


work out resultant velocities using 17th.C phsyics

bounce_wall(width, height)[source]

Missile Module

class pi3d.sprite.Missile.Missile(w=1.0, h=1.0)[source]

Bases: object

fire(x, y, z, dx, dy, dz, cnt=10)[source]