Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to draw a 1/2 circle line with radius x #442753
07/01/14 20:02
07/01/14 20:02
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
Hi folks,

i want to draw a line in 2D or 3D in an ark form of 180 degree (half round line). the function draw_line seems to be not very useful in that case.

I will be very gratefull for any sugestion.

thanks in advance
pjotr

Re: How to draw a 1/2 circle line with radius x [Re: pjotr987] #442755
07/01/14 20:20
07/01/14 20:20
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
draw_line is exactly what you are looking for. Just create a draw_circle function where you specify radius, starting angle, arc and number of iterations/ nodes, which implements a for loop that uses sinus and cosinus to get the appropriate node positions on the circle (in relation to starting angle, arc and max iterations) and draw_line between consecutive nodes.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How to draw a 1/2 circle line with radius x [Re: Superku] #442813
07/03/14 18:19
07/03/14 18:19
Joined: Jul 2011
Posts: 69
P
pjotr987 Offline OP
Junior Member
pjotr987  Offline OP
Junior Member
P

Joined: Jul 2011
Posts: 69
OK, thanks a lot.
Will try it that way.

Cheers
pjotr


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1