+1 vote

Before I try to implement a "ThrowCast" Node myself, is there something like this already inside of Godot?

I want to calculate the collision of a "stone throw" similar to the calculation of the collision by a ray cast. The math of such a collision calculation isn't to complicated but I want to avoid implement something if it already exists.


Godot version 3.3.2 64 Bit Windows Mono
in Engine by (39 points)

Nope, it will be a great idea!

There is the test_move function of KinematicBody, but I'm not sure if that's what you're looking for. https://docs.godotengine.org/en/stable/classes/class_kinematicbody2d.html#class-kinematicbody2d-method-test-move

I've coded a 2d Version of the "ThrowCast2D" Node already and am currently porting the Logic to 3D as well. I think I could make a Simple Addon which provides these Nodes including a SampleScene to show how to use them.
But at least I have to learn, how to create a Addon and add it to the asset store...

enter image description here

I created the Addon (a C# Version and a GD Version)
- the C# Version is well tested
- the GD Version is backported from the C# Version. Since I'm working most of the time with C# the GD Version may not as good as the C# Version - but at least the DemoScene works. The C# Version may be slightly faster, it uses a optimized way to update the mesh which I can't achieve in GD

Both Addons are send to the AssetStore but are currently in the approving process.
You could get them at my github pages:

Please log in or register to answer this question.

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.