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

Implement physics interpolation in 2D (already implemented in 3.x) #64182

Closed
wyattbiker opened this issue Aug 9, 2022 · 2 comments · Fixed by #88424
Closed

Implement physics interpolation in 2D (already implemented in 3.x) #64182

wyattbiker opened this issue Aug 9, 2022 · 2 comments · Fixed by #88424

Comments

@wyattbiker
Copy link

Godot version

v3.5.stable.official [991bb6a]

System information

Mac OS X (Catalina) 10.15.7

Issue description

Have a very simple parallax background and a moving RigidBody2D. It jitters every few seconds scrolling. I am just using add_force() once to get it going.

Steps to reproduce

  1. Create a new scene with Node2D.
  2. Add ParallaxBackground and ParallaxLayer Texture background
  3. Set the mirror to same size as Texture
  4. Add a RigidBody2D with a Sprite, Camera and Collision2D
  5. Check Camera2D as current
  6. Add a force of 25 to Rigidbody2D
  7. Run the project.

Notice that every few seconds the Spite snaps/jitters.

Minimal reproduction project

Open and click run. Watch every few (maybe 10) seconds it bounces.

ParallaxTest.zip

@lawnjelly
Copy link
Member

lawnjelly commented Aug 9, 2022

Physics interpolation is not yet implemented for 2D. I'm aiming to have this working for 3.6.

Until then, feel free to try my addon which will do 2D interpolation:
https://github.com/lawnjelly/smoothing-addon

@Calinou Calinou changed the title Physics interpolation has no effect on scrolling RigidBody2D in Parallax background Implement physics interpolation in 2D (already implemented in 3D in 3.x) Aug 9, 2022
@Zireael07
Copy link
Contributor

Drive by comment: I'm not certain physics interpolation is implemented in 4.0 at all (whether for 3D or 2D). Could this be clarified in docs?

@rburing rburing changed the title Implement physics interpolation in 2D (already implemented in 3D in 3.x) Implement physics interpolation in 2D (already implemented in 3.x) Feb 13, 2024
@akien-mga akien-mga added this to the 4.3 milestone Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants