| 148 | } |
| 149 | |
| 150 | static PxTransform readTransform(File* fp, PxReal scale) |
| 151 | { |
| 152 | PxTransform tr; |
| 153 | tr.p.x = scale * readFloat(fp); |
| 154 | tr.p.y = scale * readFloat(fp); |
| 155 | tr.p.z = scale * readFloat(fp); |
| 156 | |
| 157 | tr.q.x = readFloat(fp); |
| 158 | tr.q.y = readFloat(fp); |
| 159 | tr.q.z = readFloat(fp); |
| 160 | tr.q.w = readFloat(fp); |
| 161 | |
| 162 | PX_ASSERT(tr.isValid()); |
| 163 | |
| 164 | return tr; |
| 165 | } |
| 166 | |
| 167 | static void readVertexArray(File* fp, PxVec3* verts, PxU32 nbVerts) |
| 168 | { |
no test coverage detected