public Pebble(PebbleType type, Vector3 position, Vector3 rotation) : base(position) { Type = type; Rotation = rotation; Mesh = new MeshDot(position, new Vector3(type.PixelColor), type.PixelSize); //TODO: Use alpha value of pebble type Pebbles.Add(this); AllowRotation = false; }
public Pebble() : base(Vector3.Zero) { if (lastType != null) { Type = lastType; } else { Type = PebbleType.PebbleTypes[0]; } Mesh = new MeshDot(Vector3.Zero, new Vector3(Type.PixelColor), Type.PixelSize); //TODO: Use alpha value of pebble type Pebbles.Add(this); AllowRotation = false; }
public Dot(Vector3 position, Vector3 color, float size) : base(position) { Mesh = new MeshDot(position, color, size); }