New answers tagged

1 vote

Simple Circuit System

tl;dr: model the circuit network as a linear system of equations to easily solve for the current and voltage at every node using off-the-shelf linear algebra software. It depends how realistic you ...
Zac Crites's user avatar
3 votes
Accepted

Simple Circuit System

One option is to group all the connected wires into a single logical network that handles distributing power. This has the advantage of being very cheap except when dealing with removing connections ...
ratchet freak's user avatar
1 vote
Accepted

Actual Custom Nodes in Godot

If you make an script like this: @tool extends CharacterBody2D class_name Player2D Then you can add a CharacterBody2D to your ...
Theraot's user avatar
  • 25.1k
3 votes

Area2D only detecting body_exited once

The ball being an static body is odd... I suspect the Area2D is not detecting the static body at all, see the issue: Area2D does not detect moving StaticBody2D. I ...
Theraot's user avatar
  • 25.1k
0 votes

"Springy legs" for a First Person Controller in Godot 4

You could use a tween to bounce the camera when you land. That requires two things: detecting when you land bouncing the camera Modifying MovementController.gd in the template you're using to ...
idbrii's user avatar
  • 683
0 votes
Accepted

How do I determine which pixel is under the cursor when looking at an equirectangular image through a camera?

We can attack this in stages. First, we convert the point clicked on the screen into a direction in the 3D world, the same way we'd do if we were casting a ray from the camera for 3D picking. For ...
DMGregory's user avatar
  • 132k
0 votes

How can I change scenes when the player touches another CollisionShape2D in Godot 3.5?

I suspect the reason why your scene transition triggers immediately is the signal you're currently intercepting. I assume the method _on_Area2D_body_entered() is in ...
liggiorgio's user avatar
  • 4,587
1 vote
Accepted

Is it possible to do conditional compilation in Godot at this time, via export settings?

Searching for "Godot conditional compilation" led me to this GitHub discussion proposing the feature, though to less-than-rave reviews. In the comments, someone linked a proposal to ...
DMGregory's user avatar
  • 132k

Top 50 recent answers are included