getUserPointer must be const:
void* getUserPointer() const
{
return m_userObjectPointer;
}
Otherwise it is impossible to access it via pointer to the const btCollisionObject object...
getUserPointer
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: getUserPointer
Thanks, I'll look into this.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...
Erwin