I want to create a piece of 2D-Geometry which resembles PacMan: a circle with a cake-piece cut out of it (see attachment).
I reconned that the best way to do so, is to draw a Disk with a cake-piece shaped TriMesh on top of it.
While I managed to draw the contours of a cake-piece (by combining a Line and a BezierCurve), I don't know how to draw a plane which consists of a triangle and a circle part. Can you help me with this?
Can't you use textures?
Making games is more like "smoke and mirrors". Textures are your friend most of the time.
Textures are no option here (afaik), as the 'mouth' of PacMan should be able to open and close smoothly. Besides, even out of general interest I'm curious how to draw a cake-piece
Well ina modelling programm,
create a sphere,
create a second sphere, split it till you have a cake piece,
substract taht from the sphere and delete it.
(There are reasons modell programms are used, really)
gummbahla said:
Textures are no option here (afaik), as the 'mouth' of PacMan should be able to open and close smoothly. Besides, even out of general interest I'm curious how to draw a cake-piece ;)
Have 2 textures on the disc and just rotate the two textures together - like scissors