-
I would like to implement a feature, where a CharacterVirtual is holding a body with a static compound shape in his hands. I would like the character to be affected by dynamic objects in the world, while pushing them with the object he is holding. What would be my implementation options? The simplest implementation would be to use a kinematic static compound and rotate it with camera, but this would push the dynamic objects around without affecting the controller. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
If I translate this in my own words: You want the character to hold a stick. While moving the character you want to be able to use the stick to push dynamic objects. You want dynamic objects to push both the stick (which also pushes the character) and the character directly? Or should dynamic objects only be able to push the character and not the stick? Can the stick move relative to the character, or is it always held in a fixed position? And could the stick move relative to the character due to something pushing against it? Can the stick move through static bodies? If I assume the simplest case that dynamic objects can push both the stick and the character and the stick is in a fixed position then you can simply make the stick part of the capsule ( |
Beta Was this translation helpful? Give feedback.
If I translate this in my own words:
You want the character to hold a stick. While moving the character you want to be able to use the stick to push dynamic objects. You want dynamic objects to push both the stick (which also pushes the character) and the character directly? Or should dynamic objects only be able to push the character and not the stick?
Can the stick move relative to the character, or is it always held in a fixed position? And could the stick move relative to the character due to something pushing against it?
Can the stick move through static bodies?
If I assume the simplest case that dynamic objects can push both the stick and the character and the stick is in a fixed po…