Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setNextKinematicTranslation does not work #726

Open
sovetski opened this issue Dec 25, 2024 · 1 comment
Open

setNextKinematicTranslation does not work #726

sovetski opened this issue Dec 25, 2024 · 1 comment

Comments

@sovetski
Copy link

sovetski commented Dec 25, 2024

Hi,

I have a character controller with some moving platforms.

My character type is dynamic and platform is kinematicPosition, but when I update the position of platforms to move them, when I jump on the platform it does not follow the platform position

I tried to use setNextKinematicTranslation instead of position but it does not work.

I guess you need the source code to get an idea but there is a lot of code, I just wanted to know if someone here can provide me a link or some documentation on what we have to do to make work our character following moving objects when we are on it?

My problem is similar to this one: pmndrs/react-three-fiber#1949

Thanks

@sovetski
Copy link
Author

So, after spending one month on this problem, I finally found the issue!

It turns out that setNextKinematicTranslation expects an object like {x: 0, y: 0, z: 0} instead of an array like [x: 0, y: 0, z: 0].

The documentation for kinematic-related topics is quite sparse. I had to dig into the project's source code to debug it manually and understand how it works. Unfortunately, the IDE doesn't help much either, likely because the library doesn't provide all the necessary type information.

I’m leaving this issue open because I believe it highlights a real problem. The documentation should be updated to include more detailed explanations for kinematic functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant