Game crash

PJani

10-05-2009 15:17:53

Hy im having problems with ogrenewt. At runtime i get assertion error. I implemented Orentation and Position output for debuging in OgreNewt. Before crash i get this orentation and position data...

!NO MISSLE_TM0xe02a7a8:21239_FIREPORT_0
Quaternion(0.311732, 0.132465, 0.939864, 0.0439494)
Vector3(-1127.88, 356.634, -842.74)
...other objects
!NO MISSLE_TM0xe02a7a8:21239_FIREPORT_0
Quaternion(0.311732, 0.132465, 0.939864, 0.0439494)
Vector3(-1129.37, 356.969, -843.85)

...Other objects
!NO MISSLE_TM0xe02a7a8:21239_FIREPORT_0
Quaternion(0.311732, 0.132465, 0.939864, 0.0439494)
Vector3(-1.#IND, -1.#IND, -1.#IND)

....Other objects
!NO MISSLE_TM0xe02a7a8:21239_FIREPORT_0
Quaternion(0.311732, 0.132465, 0.939864, 0.0439494)
Vector3(1.#QNAN, 1.#QNAN, 1.#QNAN)


Assertion failed: (min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The m
inimum corner of the box must be less than or equal to maximum corner", file ../
include/OgreAxisAlignedBox.h, line 246

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Process returned 3 (0x3) execution time : 27.859 s
Press any key to continue.



I dont know from where OgreNewt matrix to quaternion converter gets 1.#QNAN and 1.#IND.

the object which couses this is moving with initial 600m/s...and some times this error hapends to other objects, too.
the mass of object is 20kg.

the size of world is
m_World->setWorldSize(Vector3(-10240.0f,-10240.0f,-10240.0f),Vector3(10240.0f,10240.0f,10240.0f));

is there better converter for this?

PJani

10-05-2009 22:28:20

At least does anybody know why gives newton this errors?

PJani

11-05-2009 11:02:39

i found out if i call addImpulse everytime the callback happends and impulse is zero unexpected behaviour happends. So i modified that part of code in forceCallback. And now it works fine.

As it looks addImpulse should not be called with impulse set to Vector3::ZERO it causes unexpected behaviour.