Error with b2Mat22 in Box2d ?
BlitzMax Modules Forums/Brucey's Modules/Error with b2Mat22 in Box2d ? I've added some new Create methods :
Create(a11:Float = 0, a12:Float = 0, a21:Float = 0, a22:Float = 0)
CreateVec(c1:b2Vec2, c2:b2Vec2)
CreateAngle(angle:Float)
You would call like :
Local mat:b2Mat22 = new b2Mat22.Create()
Would have like to use it on New(), but for most cases (of use) that would mean creating a new instance of b2Mat22 and throwing it away immediately, since we'd be using one created by box2d... ho hum :-)
It probably still wants some more methods added for exposure of the individual columns (set/get).
Create(a11:Float = 0, a12:Float = 0, a21:Float = 0, a22:Float = 0)
CreateVec(c1:b2Vec2, c2:b2Vec2)
CreateAngle(angle:Float)
You would call like :
Local mat:b2Mat22 = new b2Mat22.Create()
Would have like to use it on New(), but for most cases (of use) that would mean creating a new instance of b2Mat22 and throwing it away immediately, since we'd be using one created by box2d... ho hum :-)
It probably still wants some more methods added for exposure of the individual columns (set/get).
Nice and complete additions :)
I will try those asap !
I will try those asap !