0 votes

So I'm trying to make a FOV visualizer that instead of using many ray-casts, it uses the derivative of the scene geometry (All the geometry is defined by functions) to find lines that pass through the character and is tangent to said geometry.

But to do this I need to solve systems of nonlinear equations. Is this possible with GDScript? Or do I need to import some C++ library, and how do I do that?

I know for example the NumPy library can easily do this with fsolve(), but it seems like python support is still a bit wonky.


asked Apr 19, 2019 in Engine by EpEp (17 points)

1 Answer

0 votes
Best answer

For importing C++ Code have a look at the "GDNative" documentation.

answered Apr 20, 2019 by AticAtac (54 points)
selected Jun 23, 2019 by EpEp

Ok, thanks. So would a C++ library be the easiest way to go about doing this?

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.