Page 1 of 1

getUserPointer

Posted: Wed Nov 08, 2006 10:53 am
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...

Re: getUserPointer

Posted: Wed Nov 08, 2006 4:04 pm
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