Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mulbin on June 11, 2017, 06:32:54 AM

Title: Get more accurate vector (decimal points)
Post by: Mulbin on June 11, 2017, 06:32:54 AM
I'm converting vectors to precise force calculations (orbital gravity) but the problem is that vectors only seem to display to 1 decimal (0.0, 0.0, 0.0)  As I'm converting direction vectors to force  I really need them to be far more accurate (at least 3 decimal points) is there any way to do this?  Is the more accurate info just hidden or is unity really that vague when it comes to vectors?  What I'm hoping is there is sime way to extract this information from a vector.
Title: Re: Get more accurate vector (decimal points)
Post by: djaydino on June 11, 2017, 01:09:20 PM
Hi, you have to get/set the vectors x,y and z separately.
search in the actions for xyz
Title: Re: Get more accurate vector (decimal points)
Post by: jeanfabre on June 13, 2017, 06:00:19 AM
Hi,

 Don't be tripped up by how Unity shows value, they are as accurate as they can be, only for the purpose of screen estate, they are rounded when showed in the Unity interface.

Bye,

 Jean