0 votes

Hi, I want to make an arrow that moves in the direction of raycast
Which source code can direct the bullet in the axis of raycast?

in Engine by (30 points)

1 Answer

0 votes
Best answer

Try this: https://drive.google.com/file/d/1EOgU8R7Lz0pgXHKa8X8Kmq5g-LslhztP/view?usp=sharing

I've downloaded your project from another one of your questions (please stop spamming, it's better to make one descriptive post containing a link to your project). I've added a projectile class, and modified the weapon to shoot that instead of doing a raycast. It's not perfect, but it'll get you started.

by (1,100 points)
selected by

glad you finally got an answer to work with. :) good luck with your game.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.