Best way to implement a motor on one body?
Posted: Thu Nov 16, 2017 4:47 pm
I want to implement a capsule representation for a character which behaves kind of like one of those inflatable punching bags (http://shop-boxen.de/wp-content/uploads ... -Bag-0.jpg)
Basically the character should stand up straight, but rather than locking the angular factor on the rigid body representation, it should be able to be knocked off kilter and then right itself.
I'm thinking it might make sense to accomplish this with a motor: basically I could compare the desired orientation with the current orientation and then applying an angular motor target speed to correct the difference.
The question is:
1. Does this approach make sense?
2. What's the best way to implement the motor? I see that the 6DOF constraint has motor control members: can I implement a 6DOF constraint which is only attached to one rigid body?
Basically the character should stand up straight, but rather than locking the angular factor on the rigid body representation, it should be able to be knocked off kilter and then right itself.
I'm thinking it might make sense to accomplish this with a motor: basically I could compare the desired orientation with the current orientation and then applying an angular motor target speed to correct the difference.
The question is:
1. Does this approach make sense?
2. What's the best way to implement the motor? I see that the 6DOF constraint has motor control members: can I implement a 6DOF constraint which is only attached to one rigid body?