my use of bullet continues and so do my questions.
I've been experimenting with animated objects, that is to say an object (like a character) which is moving without regard for physics, but objects in its way are pushed away appropriately.
I'd very much like these states to be switchable. I'm currently using the following approach:
While the object is animated it is set to be static (CollisionObject::isStatic flag), but when it is switched to physics activated the static flag is removed. I am "animating" the object by directly writing to the motion state. In order to prevent objects from failing to collide I'm activating it when changing states.
This approach currently produces reasonable results (at least in the demo I was making), but I am wondering whether there is a different way of dealing with animations. Am I missing something? Bullet is very neat in that it is very flexible, but I sometimes get lost in the source code

Cheers,
Robin