# Converting a C++ Class to AS 1.0 or 2.0?

**URL:** <https://forum.kirupa.com/t/converting-a-c-class-to-as-1-0-or-2-0/166456>\
**Category:** programming\
**Created:** [October 20, 2005, 2:45am UTC](https://forum.kirupa.com/t/converting-a-c-class-to-as-1-0-or-2-0/166456 "2005-10-20T02:45:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnnyG](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@JohnnyG](https://forum.kirupa.com/u/JohnnyG)\
**Post date:** [October 20, 2005, 2:45am UTC](https://forum.kirupa.com/t/converting-a-c-class-to-as-1-0-or-2-0/166456/1 "2005-10-20T02:45:48Z")

</div>

Before I get bashed for asking someone to code for me, let me explain. I know AS fairly well, but I’m no math genius. I’m working on a game idea at the moment, and picked up “AI for Game Developers” through O’Reilly Press. Good book - 15 pages in and my head hurts. 😉

Anyway, some of the code relies on a custom Vector Class that’s used to calculate 2D and 3D rigid body dynamics, which are excellent for all sorts of stuff like pathfinding, chase and evade algorythms, flocking - even Bayesian Networks.

My issue is I don’t understand the C++ syntax well enough to convert it to AS an AS class or function in 1.0 or more likely 2.0. Anyone interested in taking a crack at it? Could prove very useful to the group at large.

j.
