playMaker

Author Topic: How to create box by Click And Drag ?  (Read 2207 times)

anodin

  • Playmaker Newbie
  • *
  • Posts: 2
How to create box by Click And Drag ?
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to create box by Click And Drag ?
« Reply #1 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

anodin

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to create box by Click And Drag ?
« Reply #2 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 ;)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to create box by Click And Drag ?
« Reply #3 on: December 11, 2012, 05:38:38 PM »
so? do you have it working?

bye,

 Jean