Julio Jerez wrote:on the assert can you show print the values of the vector. when the assert happens?
ans also the value of the matrix when you call the function.
AdvancedPlacement090_64d.dll!NewtonBodySetMatrix(const NewtonBody * const bodyPtr, const float * const matrixPtr)
that lead to the crash.
To make it simpler, I made another scene with a centered box, so the the matrix passed to NewtonBodySetMatrix is the Identity matrix ... although I noticed some of the zeros are negative for some reason
2013-09-06 22:27:52.175 [Log:0:] D:
[ 1, -0, 0, 0;
0, 1, 0, 0;
-0, 0, 1, 0;
0, 0, 0, 1]
There some NAN when I look at the values at the assert
adjust {m_type={...} m_typeInt={...} m_f=0x0000000000139cf0 ...} dgVector
+ m_type {0, 0, -1.#QNAN, 0} __m128
+ m_typeInt {000000000000000000ffffffff00000000} __m128i
- m_f 0x0000000000139cf0 float [4]
[0] 0.00000000 float
[1] -1.#QNAN00 float
[2] 0.00000000 float
[3] 0.00000000 float
m_x 0.00000000 float
m_y -1.#QNAN00 float
m_z 0.00000000 float
m_w 0.00000000 float
m_ix 0.00000000 float
m_iy -1.#QNAN00 float
m_iz 0.00000000 float
m_iw 0.00000000 float
- m_f 0x0000000000139cb0 float [4]
[0] 5507304.0 float
[1] 38.000000 float
[2] 3212596.0 float
[3] 1.0000000 float
- ret.m_f 0x0000000000139cb0 float [4]
[0] 5507304.0 float
[1] 38.000000 float
[2] 3212596.0 float
[3] 1.0000000 float
Bird