Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: markinjapan on October 02, 2011, 08:31:10 PM

Title: Multiply the X, Y and Z components of a Vector3 individually.[SOLVED]
Post by: markinjapan on October 02, 2011, 08:31:10 PM
As I'm making a 2D game I tend to multiply vectors but I only need to do it in the X and Y, not the Z. Currently, you have to separate a Vector3 into the X, Y, Z, do the maths and then reconstruct it with Z as 0.

Would be nice not to have to do that as it's a bit messy :)

Thanks
Title: Re: Multiply the X, Y and Z components of a Vector3 individually.
Post by: Gua on May 22, 2013, 09:49:33 PM
Agree.
Title: Re: Multiply the X, Y and Z components of a Vector3 individually.
Post by: jeanfabre on May 23, 2013, 01:14:45 AM
Hi,

 or multiply as is, and then set Z to 0,

 or multiply by a vector like Vector3(multx,multy,0)

 Could that not work?

bye,

 Jean
Title: Re: Multiply the X, Y and Z components of a Vector3 individually.
Post by: markinjapan on May 31, 2013, 06:18:47 AM
Yup, that's how I eventually did it.

Just need to think before I type... :)