bullet3 icon indicating copy to clipboard operation
bullet3 copied to clipboard

Problems with character based on btPairCachingGhostObject and btKinematicCharacterController

Open native-engine opened this issue 3 years ago • 1 comments

I created a character based on btPairCachingGhostObject and btKinematicCharacterController and two questions arose at once: the character constantly moves jerkily and he moves noticeably faster when he rotates the mouse. How can I get rid of these annoying drawbacks? And I want to ask - is it possible for btPairCachingGhostObject, as well as for btRigidBody, to assign the class btMotionState or something like that, so that the camera does not update when there is no movement or rotation of the character?

native-engine avatar Sep 03 '22 03:09 native-engine

The next line is: walkSpeed = walkVelocity * dt; replaced the line walkSpeed = walkVelocity / GameData.threadData.gameTimer.trueFPS; and moving the character, including rotations, became stable. But the question about using the btMotionState class or its analog for the btPairCachingGhostObject / btKinematicCharacterController object still stands.

native-engine avatar Sep 03 '22 04:09 native-engine