Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kyy921 on April 27, 2012, 06:54:27 AM

Title: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 06:54:27 AM
I want measure a point to the mouse pick place, I try to use distance event to do it, but distance can only measure object to object, how i can measure the distance from an vector to another??
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 07:59:06 AM
and~~ when i use mouse pick the surface's normal, how i can create an object follow the normal? I try to pick the suface's normal and set it to an instance's rot, but it seem not so correct
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 08:00:48 AM
I hope it can be generate like this
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 08:01:49 AM
but it just like this
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 08:03:05 AM
the rot value is picked, but I dont think its the right number.
......
help..... T T
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: Iwa on April 27, 2012, 08:05:03 AM
For your measure : One solution is to use the action Vector Substract and then Get Vector Length :). I'm not a pro, so here is my little idea :)

I can't help you at all for the rest
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 27, 2012, 11:39:24 AM
thank you! I will try
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: jeanfabre on April 27, 2012, 03:02:31 PM
Hi,

 For getting the normal and have an game object follow it, i did a working example a while back on this forum, can't find it, but will search better and give you the link asap

For distance, iwa is correct, to get a feel for vector operation, simply google for it, and then apply this with the actions provided, there is little you can't do with playmaker on that matter.

Bye,

Jean
Title: Re: how I can get distance from 2 vectors? I can only meature to object...
Post by: kyy921 on April 28, 2012, 01:14:14 AM
 :) really thank you !