Jump to content

Recommended Posts

Posted

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 :)

Posted

Yep, Objects in BlitzMax are like a memory-managed pointer. I had trouble with this concept when I started with C++.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

Almost all in BMax is *

 

C++

TPickInfo * p=new TPickInfo;

p->a=1;

 

BMax

local p:Tpickinfo=new Tpickinfo

p.a=1

"Better" is big enemy of "good"

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.

×
×
  • Create New...