Vector math methods.

Software: Away3D 4.x

Avatar
SasMaster, Sr. Member
Posted: 11 June 2011 05:05 PM   Total Posts: 127

Dear team it would be nice to have more Vector math methods.Working with Unity3D I found very handy methods like LERP() (for vectors) clamp() ,clampMagnitude() ,scale(){not by scalar but by other vector’s components)
And some more.It would be nice to have these in Away toolbox as well.BTW I have them already ported in AS ,so if you decide to add some of these let me know.

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Rob Bateman, Administrator
Posted: 13 June 2011 11:16 PM   Total Posts: 120   [ # 1 ]

Hey SasMaster

yes! we would love to have a look at your vector methods - are these stored in a utils class? If you’ve used these before, what in your opinion is the best way to implement such as feature?

I should point out that anyone wishing to make their own additions to teh Away3D engine can easily do so these days on github. Simply go to http://www.github.com/away3d and choose the library you want to fork. You require a github login of your own in order to create forks, but once done you can add or alter as much as you like in your own repository. When you feel changes or additions are ready for integration, you can submit a pull request to the original repo which we then receive and review. If all looks good, we simply authorise the pull and your changes appear in the official Away3D branch. Simple, eh?

for more info on forking and merging in github, check out these pages:

http://help.github.com/fork-a-repo/
http://help.github.com/send-pull-requests/

cheers

Rob

   

Avatar
SasMaster, Sr. Member
Posted: 14 June 2011 05:25 AM   Total Posts: 127   [ # 2 ]

Hi Rob.Well I have got a fork of Away but the methods I listed reside in the BulletSteer(Steering AI for Ringo’s Bullet and Away3D in general) project I have been working on already for a while.They all are ports from Unity3D.So you have got Vector3DUtils class and I think that is the best place to put those methods.I will update Vector3DUtils in my fork with those methods and you can pull them for inspection.
Cheers

 Signature 

This looks like a job for superman
http://blog.alladvanced.net

   

Avatar
Rob Bateman, Administrator
Posted: 14 June 2011 11:01 AM   Total Posts: 120   [ # 3 ]

great, thanx!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X