VeTaL Posted November 21, 2011 Share Posted November 21, 2011 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 Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Josh Posted November 22, 2011 Share Posted November 22, 2011 Yep, Objects in BlitzMax are like a memory-managed pointer. I had trouble with this concept when I started with C++. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Aily Posted November 22, 2011 Share Posted November 22, 2011 Almost all in BMax is * C++ TPickInfo * p=new TPickInfo; p->a=1; BMax local p:Tpickinfo=new Tpickinfo p.a=1 Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
Recommended Posts
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.