Victor Karp

Godot Engine – Rotating a character with transform.basis.slerp

This article is also available on Odysee. rotation_degrees, transform.basis and quaternions If you want to rotate a character towards a point, there are three popular methods you can use: modifying the character’s rotation_degrees.y value, changing the transform.basis or using quaternions. This tutorial will show you how the transform.basis approach works. The transform.basis property of any […]

Godot Engine – How to get the class name of a custom class

If you have ever created custom classes by using class_name MyCustomClass in one of your scripts you might have noticed that these classes don’t return their custom class name when you use get_class() or is_class() on them. This tutorial will show you how to fix this. Let’s say you have a script that inherits […]

Godot Engine – How to create references to nodes

This tutorial explains how to create exported variables that reference nodes and how to combine this with static typing. Why using $ or get_node() is problematic To get a reference to a node in your node tree, you can use the $ sign followed by the node’s path. In a setup like on the next […]

Godot Engine – Raycast shotgun tutorial

This article is also available on Odysee. This quick tutorial shows you how to use multiple raycasts in the same physics frame in the Godot Engine. This is useful for raycast (also called hitscan) weapons like shotguns that fire multiple pellets at the same time. Here’s the problem: by default, this doesn’t work in Godot […]

Scroll to top