Skip to content

Add 3D physics interpolation demo #1223

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 25, 2025

Demonstrate first person shooter and third person shooter cameras.

This salvages @lawnjelly's work on the demo and further refines it.

Preview

image

@lawnjelly
Copy link
Member

This is great! 🥳

I've added a bunch more comments and made some variable names clearer, hopefully you can copy the gdscript from:
#1220

I also discovered a bug in the SceneTreeFTI for toggling interpolation on / off 😊 , but have made a small fix PR so hopefully that will be closed for 4.5.

@Calinou Calinou force-pushed the add-3d-physics-interpolation-demo branch from caafd6a to 60d132a Compare June 30, 2025 15:21
@Calinou
Copy link
Member Author

Calinou commented Jun 30, 2025

I've added a bunch more comments and made some variable names clearer, hopefully you can copy the gdscript from:
#1220

Done. Note that I've refactored bullet.gd to use built-in Godot functionality whenever possible, which makes the script a fair bit shorter. I've also removed the scale clamping, as current Godot should have no problems with zero-scaled meshes.

@lawnjelly
Copy link
Member

Done. Note that I've refactored bullet.gd to use built-in Godot functionality whenever possible, which makes the script a fair bit shorter.

I'm sure that will be fine, the bullet isn't super important.

(I personally don't tend to use or recommend using Timer nodes as I don't find them a good approach to game timing imo, as they aren't accurate for tick based stuff, and can lead to order of operations bugs. But maybe users like them. 😁 )

@Calinou Calinou force-pushed the add-3d-physics-interpolation-demo branch 3 times, most recently from 62d1b07 to 55af334 Compare July 11, 2025 22:14
Demonstrate first person shooter and third person shooter cameras.
@Calinou Calinou force-pushed the add-3d-physics-interpolation-demo branch from 55af334 to 8b4596c Compare July 14, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants