Help with some Blueprint vector calculation

locations

Starting from point 0 with direction represented by the blue line, how can compare the distance from point 1 to the blue line ( small red line) agaisnt the distance from point 2 to the blue line ( bigger red line ) ?

I think it should be enough:

image

2 Likes

Ahhh remember there is a math level in the content examples!

But, the question is how to translate that to blueprint.

Yeah I understand some days is difficult to open the epic launcher and click download in the marketplace… I feel you

Really funny.
But for me, when I try to open the Content example project, it crashes.
Anyway, thanks for not helping.

IMO what is complicated is that you need to know trigonometry (Pythagoras) to be able to build this or to at least understand the logic to do so.

Anyways, think this is what you are asking for:
Triangles
Debug string don’t show up when simulating so here is a screen:


The blueprint:
BP_SplinePointCalc-EventGraph_0

Hope it helps. Feel free to ask anything.

4 Likes

Thank you. You just help me a lot.

1 Like

Ha, this is gold!

1 Like

yeah, really funny

ā€œhow do i solve this math problemā€

your answer

ā€œyou need to know mathā€

actually that was not funny at all. quite a bad taste answer

What?

lmftfy:

You need to know primary school 3rd grade math!

1 Like

My idea was to help him to try, and to solve
to give the solution I think is a bad idea… Because If I copy / paste, I understand nothing never

While I generally agree, everyone learns in their own way. Some folks love taking existing code / script apart and see what makes it, ehm, tick. I am definitely guilty of trying to help with ready-to-go solutions. I’d like to think the target audience is inquisitive enough and will dig deeper into the problem themselves later on.

You also get the chance to teach someone a correct approach, so they do not need to make the mistakes you had made before learning it yourself.

The ā€˜google it’ or ā€˜search the forums’ type of answer can be frustrating. Oftentimes the real issue is not knowing the keyword. Every time I try to explore a whole new topic myself, I stumble and I’ve been googling things for years!

Or perhaps you’re right. Folks get spoiled by the visual nature of blueprints and expect things prewired from A-Z.


I mean, the solution here is a glorified triangle, not much to talk about really. …unless someone (pezzott1) walks 500 miles out of their way to help a stranger on the internet.

:1st_place_medal:

2 Likes

don’t know if 3rd grade math. I know about the Pythagorean theorem and the rest. what I’m lacking is the process in finding solution to a problem. That is a specific important topic in math that like most of us we didn’t paid attention too when we should had.

So you have a bunch of math tools, formulas and the rest and we need to combine them to resolve a specific problem. Not only, after you have figured out this from a math point of view you need to adapt that solution to a specific software or reality. like in this case the blueprints nodes from unreal.

So is not so trivial for the rest of us. I have 6 months of figuring this unreal game stuff. And 5 months spent in learning the software. What miracles I can do?

@dorusoftware I would like you to understand my situation…
Not necessary to read, but I’d like you to do

why do you think the people know how to do it in bp? I don’t think is something you do each day…
In my case, I have no idea how to do it by hand right now, last time I use was 8 years ago…

So first I read the post, then I thought about how to resolve it, at some point eureka… oh I think I can make a triangle, and … I was looking for the pitagoras in several pages… I look at the case in maths…

When I was sure at 90% about to solve by tracing lines and making a triangle, I phoned my uncle to be sure, because is a mathematician at 00 of the night

Then I said ā€œoh sure there is an example in the content examples in the math levelā€
I did install, look, and yes… then I share…
OH here is the blueprint! Just a few changes

And imagine my face when you told me

Not even read!!!

I tell to you because I understand you are stressed and in a hurry, but please…

I’ve read your replies and I will explain why your type of answer is something that I really personally hate.

So you are trying to point a person on a path so he can learn how to figure it out himself.

That is a good learning tool, you are not wrong, but it depends of at least two factors that are missing here.

First, one needs to have the time, second there is a teacher/master near him from start of the problem till the end of the problem to correct him if he goes out of the path too far.

In most cases one doesn’t have the time to invest days or weeks trying to figure the solution to a particular problem, all by himself with no one beside him to even give a hint that his on the right track.

You come up you have pointed a finger to a general area, then you are out. How selfish and frankly bad taste behavior.

As you may be well aware, creating a game involves a lot of different systems and for that game engines are quite complicated tools. If for each thing I require for my game ,I need to invest weeks to try finding a path that was already figured out by people before me, I will never finish the game.

What if unreal team will do it like you, once they get a new system they don’t create tutorials, documentation, instead they say, ā€œhere is a new tool go on and figure this out yourselfā€

So if you want to help, just give the general theory why something works like and also give the code.

The fact that you are getting involved in helping others is a good thing and is not something the rest of us should take for granted. Just try to use the methods appropriate for the situation.

There is only one situation when your type of answer can be accepted if properly described before of that. When you don’t have a solution but you think the solution may be in a certain direction. You will say, ā€œI don’t know how to do this in blueprint but i think is something related with this formula, if you didn’t tried this path maybe this can help. Also I think the example content have something similarā€ That is a fair answer. No one has anything to complain

Yeah ok, as I said I was able to help In all steps, I’m associated professor at university.

But don’t tell me I deserve you insult to me
As far I know I don’t work for you

Next time just say in the header URGENT I need the solution in a blueprint, I have no time.

Just it. Easy

being a professor, that explain it. your method works great for your students because you are there with them to guide them.

in this case doesn’t work. also, your inability to make a distinction between criticizing something you said and your person as a human being is interesting. No one insulted you, just pointed that the answer you have posted just makes me angry, and also I’ have explained why.

Omg, Too much drama for a triangle
You are right my mistake sorry

Just let’s stop in here sure we have more things to do in life