CreateUserMeshCollision not passing userinfo to callback

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

CreateUserMeshCollision not passing userinfo to callback

Postby JoshKlint » Wed Apr 10, 2019 2:29 pm

The user info value in NewtonCreateUserMeshCollision is no longer being passed to the callback in the collideDescData->m_userData parameter. This change happened recently, as it only started happening with my latest build. m_userData is now always NULL.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: CreateUserMeshCollision not passing userinfo to callback

Postby JoshKlint » Wed Apr 10, 2019 2:37 pm

The error may be occurring in NewtonCollisionCreateInstance(), since this is called in an intermediate step.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: CreateUserMeshCollision not passing userinfo to callback

Postby Julio Jerez » Wed Apr 10, 2019 3:09 pm

what data structure is the descriptor? and what is the callblack prototype.
Julio Jerez
Moderator
Moderator
 
Posts: 11045
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: CreateUserMeshCollision not passing userinfo to callback

Postby JoshKlint » Wed Apr 10, 2019 3:31 pm

Code: Select all
void VegetationLayer::CollideCallback(NewtonUserMeshCollisionCollideDesc* const collideDescData, const void* const continueCollisionHandle)
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: CreateUserMeshCollision not passing userinfo to callback

Postby JoshKlint » Thu Apr 11, 2019 2:11 pm

I think the NewtonUserMeshCollisionCollideDesc structure is out of sync with the data being passed to it in the callback. The userdata value is there, just not in the right place.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: CreateUserMeshCollision not passing userinfo to callback

Postby Julio Jerez » Thu Apr 11, 2019 4:03 pm

yes, you may be right, I have not check it, I am very busy this week, I will check it out this Saturday.
if you can determine the cause go a head do it, if no I do it over the weekend.
Julio Jerez
Moderator
Moderator
 
Posts: 11045
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: CreateUserMeshCollision not passing userinfo to callback

Postby JoshKlint » Sat Apr 13, 2019 11:57 pm

It's Saturday. :D
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: CreateUserMeshCollision not passing userinfo to callback

Postby Julio Jerez » Mon Apr 15, 2019 2:23 pm

Ok fixed,
I though you had a work around.
Julio Jerez
Moderator
Moderator
 
Posts: 11045
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: JernejL and 1 guest