#Raycast movement delay

3 messages · Page 1 of 1 (latest)

odd patio
#

Hey, does anybody know why when using a for loop the raycast wont move but will only move but only for each valid shoot command?

charred abyss
#

By default the RayCast3D will only be updated at the start of each physics frame but you can force it to update after you have made changes to it with the force_raycast_update() method. In your case you would need to add it to the end of your applyRecoil() function.

odd patio