how can i draw

Typically: "How do I... ", "How can I... " questions
qwerty
Posts: 12
Joined: 01 Jun 2023, 13:29

Re: how can i draw

Post by qwerty »

Thank you very much for your reply, have a nice day.

qwerty
Posts: 12
Joined: 01 Jun 2023, 13:29

Re: how can i draw

Post by qwerty »

Hello,

i comeback on this topic because i don't understand how can i reduce the size of the radius of my disk ?
Thank you in advance for the answer

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: how can i draw

Post by fferri »

fferri wrote: 12 Jun 2023, 08:10

Code: Select all

--                            pos:          quat:       size:
sim.addDrawingObjectItem(dwo,{0.5,  0,0,    0,0,0,1,    0.2})
0.2 is the size (radius)

qwerty
Posts: 12
Joined: 01 Jun 2023, 13:29

Re: how can i draw

Post by qwerty »

My object is still and I want my circle to be able to change size. I can make it grow bigger but not reduce it.
I don't understand why

fferri
Posts: 1230
Joined: 09 Sep 2013, 19:28

Re: how can i draw

Post by fferri »

Then you are adding multiple drawing object items.

Clear the drawing object with sim.addDrawingObjectItem(dwo,nil) before adding other items, or use sim.drawing_cyclic attribute when calling sim.addDrawingObject, with appropriate drawing object size (as in maximum number of drawing object items it can contain).

Post Reply