Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: anodin on November 27, 2012, 10:08:33 PM

Title: How to create box by Click And Drag ?
Post by: anodin on November 27, 2012, 10:08:33 PM
I am looking for nice ideas.
I want create box with the mouse by click for create and drag to definite the size of the box (opposite conner of the click)
like 3d software (3dsmax Maya) for reference.
I try differents things like Get vertex position Set vertex3, but still doesnt works.
Thanks
Title: Re: How to create box by Click And Drag ?
Post by: jeanfabre on November 28, 2012, 01:04:30 AM
Hi,

 Interesting problem :)

 It would be quite involving depending on how close you want this to be to how max does it.

 first I would train myself to master click and drag and get the start position, end position and compute then where the cube should be ( centered, with one corner at the start post and the other corner at the end pos).

 Come back to me after the 12th of december, I will have more time to do a working sample of 3d max like cube creation.

bye,

 Jean
Title: Re: How to create box by Click And Drag ?
Post by: anodin on November 28, 2012, 01:17:48 PM
Thx for the quick answer Jean,

The box creation will be in 2D, X Y.
Z can be lock.

i will try again.
See you 12 dec ;)
Title: Re: How to create box by Click And Drag ?
Post by: jeanfabre on December 11, 2012, 05:38:38 PM
so? do you have it working?

bye,

 Jean