Jump to content

Vector equations?


VeTaL
 Share

Recommended Posts

Looking like equations of vector are equation of their adresses..

pickFrom = EntityPosition(scanPivot, True)
pickFrom.y:-1

pickTo = pickFrom
pickTo.y:-20

DebugLog:pickFrom pos: 7.00000000 0.776861191 101.641525

DebugLog: pickTo pos: 7.00000000 0.776861191 101.641525

DebugLog:pickFrom pos: 7.00000000 0.698457718 101.693985

DebugLog: pickTo pos: 7.00000000 0.698457718 101.693985

 

Solution is simple:

pickFrom = EntityPosition(scanPivot, True)
pickFrom.y:-1	

pickTo = EntityPosition(scanPivot, True)
pickTo.y:-21

DebugLog:pickFrom pos: 7.00000000 21.1097164 101.152794

DebugLog: pickTo pos: 7.00000000 1.10971642 101.152794

DebugLog:pickFrom pos: 7.00000000 21.1096268 101.199188

DebugLog: pickTo pos: 7.00000000 1.10962677 101.199188

Working on LeaFAQ :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...