getUserPointer

Jack
Posts: 59
Joined: Thu Aug 31, 2006 11:51 am

getUserPointer

Post by Jack »

getUserPointer must be const:

void* getUserPointer() const
{
return m_userObjectPointer;
}

Otherwise it is impossible to access it via pointer to the const btCollisionObject object...
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: getUserPointer

Post by Erwin Coumans »

Jack wrote:getUserPointer must be const:

void* getUserPointer() const
{
return m_userObjectPointer;
}

Otherwise it is impossible to access it via pointer to the const btCollisionObject object...
Thanks, I'll look into this.
Erwin