iokto / newton-dynamics

Automatically exported from code.google.com/p/newton-dynamics
0 stars 0 forks source link

Tutorial_203_RayCastConvexCastCar crash at dgCollisionHeightField::RayCast #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run 
\newton-dynamics-2.32\applications\tutorials\bin\Win32\Tutorial_203_RayCastConve
xCastCar.exe
2. Wait <1s until models reach ground.
3. Crash.

What is the expected output? What do you see instead?
No crash :) Instead I'm seeing AV in dgCollisionHeightField::RayCast at line 
639, because body==NULL.
Attached stack (from VSE2010).

What version of the product are you using? On what operating system?
newton-dynamics-2.32
Win7 x64

Please provide any additional information below.
"Dirty" workaround dgCollisionHeightField.cpp:638  (method 
dgCollisionHeightField::RayCast)
Change:
[line 638]  if (m_userRayCastCallback) { 
To:
[line 638]  if (m_userRayCastCallback && body) {

Original issue reported on code.google.com by krystian...@gmail.com on 9 Mar 2011 at 8:28

Attachments: