开发者

Drawing a stick-man in AS3

A stickman is defined as a set of points, a set of lines between certain points, and other simple shapes (like a circle for a head).

It looks to me like the easiest route in AS3 is to use a Shape/Sprite's Graphics property to draw these lines, clearing and re-drawing each time the stickman changes. But some of the newer Flash 10 stuff seems to suggest a clos开发者_开发知识库er functionality to 3D graphics where you can define points and lines/triangles and then move the points rather than recreating all from scratch each render. Is this the case?


Yes , you should look at inverse kinematics
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS33C39F6A-19F1-4848-A0F8-A3604A000067.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜