hihi,

i looked through some of the xml examples and got some idea on usage of 2D drawables - polygon.

An array with 3 coordinates defined the vertices of a triangle.

Quoted from friction.xml

Model variables

PX {xmin,xmin,xmax} double 3

PY {ymin,yh,ymin}  double 3

View Polygon
points 3
X  PX
Y  PY
Unquote:

[b]My question is how to do a partial circle easily? [/b]

my initial idea is 7 points  using

{origin, r.Math.cos(alpha/6) , r.Math.cos(2*alpha/6), r.Math.cos(3*alpha/6), r.Math.cos(4*alpha/6), r.Math.cos(5*alpha/6), r.Math.cos(6*alpha/6) }

{origin, r.Math.sin(alpha/6) , r.Math.sin(2*alpha/6), r.Math.sin(3*alpha/6), r.Math.sin(4*alpha/6), r.Math.sin(5*alpha/6), r.Math.sin(6*alpha/6) }

is this easiest way ?

Thanks ;D