Error with b2Mat22 in Box2d ?
BlitzMax Forums/Brucey's Modules/Error with b2Mat22 in Box2d ?
| ||
Hi Bruce Is this possible that Local mat:b2Mat22 = New b2Mat22 mat.SetAngle(_angle) bmx_b2mat22_setangle return an error caused by a null pointer ? Without this 2x2 matrix you have to manually recreate the b2Mul() method ^^ |
| ||
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). |
| ||
Nice and complete additions :) I will try those asap ! |