playMaker

Author Topic: Get more accurate vector (decimal points)  (Read 1358 times)

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Get more accurate vector (decimal points)
« 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get more accurate vector (decimal points)
« Reply #1 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get more accurate vector (decimal points)
« Reply #2 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