Example #1
0
    public DynamicPixel(World world, Color c, float x, float y, float vX, float vY, int size)
    {
        col    = c;
        this.x = x;
        this.y = y;
        lastX  = x;
        lastY  = y;
        velX   = vX;
        velY   = vY;

        this.size       = size;
        this.world      = world;
        this.worldEntry = world.CreateDecal(new Vector3I((int)x, (int)y, 1), c);
    }
Example #2
0
 public void Destroy()
 {
     pD.DestroyDynamicPixel(this);
     this.world.RemoveDecal(this.worldEntry);
     this.worldEntry = null;
 }