btTransform question

JohnBoyManbullet

09-08-2011 07:00:30

Hello all i have gone far into bullet with ogre programming. I have a character that will start walking according to my mouse clicks. When it stops moving completely i can no longer select and move it. I narrowed down the problem to its a bullet thing. I have always neglected to use the bttransforms anymore than i need. I think its the problem i start a transform after a character has been created and added to the physics world like this.



btTransform startTransform;
startTransform.setIdentity();
startTransform.setOrigin( btVector3(200,250,300) );









It shouldnt be hard to set another but my motions state has the old transform in its method, would i have to make a new motion state every time my character wants to start moving again?


This is what i have learned. to get it going. I wanted confirmation for my theory that once the entity comes to rest, that transform will end . If this is true ill need to reset it. Can i just rewrite startTransform.setOrigin( btVector3(200,250,300) ); for my next plotted point. Thanks for a heads up or 2 cents thanks.

JohnBoyManbullet

10-08-2011 01:16:13

I think i should be using




endTransform.setIdentity ();

end.setOrigin (mp);


JohnBoyManbullet

12-08-2011 03:24:04

body4->setActivationState (DISABLE_DEACTIVATION); WAWWW that was easy