NearCallback in ode anyone?

BlitzMax Forums/BlitzMax Programming/NearCallback in ode anyone?


The command cons[i] = New dContact allocates memory for a single dContact and stores it's reference in the BlitzMax array...


Ah you're right. So is there no way to create a block of types? Like in C++ I would do,

       dContact cons[MAX_CONTACTS]


and it would be an array of contacts because it's all assigned at once.

Failing that, is there a way to cast a byte ptr into a type so I can do this,

Bank = CreateBank( SizeOf(DContact)*MaxContacts )

local con:DContact = DContact( BankBuf( Bank) )

Like in C++?