I am having problems filling in the rigid body construction info. I receive this compile error when trying to set the initial motionstate:
No matching function for call to `btRigidBody::btRigidBodyConstructionInfo::btRigidBodyConstructionInfo(int, btDefaultMotionState*&, CollisionShape*, btVector3)'
The problem being the btDefaultMotionState*& parameter. I have declared and implemented the motionstate like this:
btDefaultMotionState *motionState = new btDefaultMotionState(btTransform(btQuaternion(0,0,0,1),btVector3(pos.x,pos.y,pos.z)));
And I call the struct like this:
btRigidBody::btRigidBodyConstructionInfo conInfo(0,motionState,&mColShape[shape],btVector3(0,0,0));
I can’t understand what’s wrong. Thanks in advance
[edit]
Forgot to mention that the compiler suggests that the candidate is:
btRigidBody::btRigidBodyConstructionInfo::btRigidBodyConstructionInfo(btScalar, btMotionState*, btCollisionShape*, const btVector3&)
Which is what I got I think.
[/edit]
Motionstate problem - solved
-
- Posts: 19
- Joined: Mon May 11, 2009 8:46 am
Motionstate problem - solved
Last edited by O-san on Tue May 12, 2009 10:47 am, edited 1 time in total.
-
- Posts: 19
- Joined: Mon May 11, 2009 8:46 am
Re: Motionstate problem
Sorry, I solved it... had some class members mixed up with my collision shape that threw me on the wrong course. Thanks anyhow