OZONE Asylum
Forums
Multimedia/Animation
Isometric projection in Flash.
This page's ID:
29525
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Sorry, that's not what I'm looking for. Perhaps this may clarify: We have the function that does exactly what I want as blah(), and let's use this simple example: [code]// Slightly altered versions of the previous functions: // transforms x,y,z coordinates into Flash x coordinate xFla = function (x, y, z) { // cartesian coordinates xCart = (x-z)*Math.cos(0.46365); // flash coordinates xI = xCart; return (xI); }; // transforms x,y,z coordinates into Flash y coordinate yFla = function (x, y, z) { // cartesian coordinates yCart = y+(x+z)*Math.sin(0.46365); // flash coordinates yI = -yCart; return (yI); }; // Let's say function blah() is here... // Usage: blah ( point_X , point_Y , altitude ) ix = 12; iy = 5; iz = 23; fx = xFla(ix,iy,iz); fy = yFla(ix,iy,iz); trace("fx = "+fx+" | fy = "+fy); // output: fx = -9.83868733881014 | fy = -20.652550692568 n = blah(fx,fy,iy); trace("x = "+n[0]+" | y = "+n[1]+" | z = "+n[2]); // output: x = 12 | y = 5 | z = 23[/code] Hope that helps. Due to the lack of accuracy the returned values of blah() would be rounded before returned. [url=http://www.zavaboy.com][img]http://asylum.zavaboy.com/zavaboy.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »