|
I have Kinematic-Dynamic bodies system for player controlled bodies and my grabbing system works by mounting objects to dynamic body using FixedConstraint. My gun consists of 3 parts - frame, slide, magazine. I'm trying to mount slide and magazine to frame using FixedConstraints (I plan to replace it with SliderConstraint for slide later). However I couldn't find is there any way to make Jolt treat them as single object, so when applying forces or colliding with static terrain my gun splits up into multiple parts. Is it possible to make this purely with Jolt, or it would be better to look for some workarounds? output.mp4 |
Replies: 1 comment 6 replies
With constraints there's always a bit of slack because the simulation is not perfect, but it looks like there is a lot of slack in your movie. I have some questions:
|
I'm not sure what the purpose of body 2 is, but I would get rid of it (if you need some smoothing of the player input, then do that in your code). In general it's good to not move your kinematic body too abrubtly.
Other things to try:
FixedConstraintSettings::mAutoDetectPointto determine the best attachment points between the bodiesPhysicsSettings::mBaumgarte, higher values corr…