0

I am developing a game app in which a curve(Bezier) is required on the basis of theta provided by user and this will be in animated format. But i am not aware of openGL. Then how can i do it programatically?

Sandeep Singh
  • 826
  • 2
  • 10
  • 24
  • Are you asking how to animate an object along a curve? If so, my answer to this question may be what you're looking for: [How can I animate the movement of a view or image along a curved path?](http://stackoverflow.com/questions/1142727/how-can-i-animate-the-movement-of-a-view-or-image-along-a-curved-path) – Brad Larson May 25 '11 at 17:57
  • What is viewOrigin in your post. Its shows undeclared in my code. – Sandeep Singh May 26 '11 at 10:02
  • `viewOrigin` is, as the name would indicate, the current origin of the view. It can be obtained by reading the `frame` property of the view, then grabbing the `origin` component of that. – Brad Larson May 26 '11 at 14:25

2 Answers2

0

Have a look at UIBezierPath

Abizern
  • 146,289
  • 39
  • 203
  • 257
justin
  • 104,054
  • 14
  • 179
  • 226
-1

Have a look at the Quartz drawing guide.

Abizern
  • 146,289
  • 39
  • 203
  • 257
  • Have a look at the Quartz drawing guide (which I've linked to) and read about all the things you can use for drawing in iOS. – Abizern May 25 '11 at 11:57