Skip to content

jeroenheijmans/sample-godot-sub-viewport-and-input-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample for Godot SubViewport with Input Events

Demonstrates how you can have pickable bodies inside a SubViewport based world with Godot 4.x. Even if those components are created with instantiate().

Disclaimer: this was created while learning Godot programming. I'm a web developer by trade, not a game developer. Take this sample with a grain of salt.

⚠️ Notice about updates

Note that this repository is provided "as-is" and will most likely not receive any (security) updates.

About the sample

Running this sample allows you to:

  • See input_event at work for the Static Body's (those with the Godot icon sprite) by clicking them
  • Add fresh instances of that component through code by pushing the button, and see they're also connected
  • Drop some RigidBody2D balls on top of it all to ensure physics is working for the stuff inside the SubViewport

And that's about it!

Demo

Here's what things operate like when running:

demo-001.gif

About

Shows Godot 4 having Pickable bodies inside a SubViewport, with InputEvents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published