I could use a character, a paper character, or a main pawn as well, however only the character class is compatible with set gravity direction node, but character class has other problems in my case. Since I cannot attach a pawn class (or default pawn) to set gravity direction node, how can I do it with C++?
Gravity must be modify all the time, by a line trace’ s normal direction, fired by the characters location. Whatever the incline of the surface the line trace hits, the gravity will be modified towards it so the character will always be able to walk in every surface(every incline) normally. You can think of my character as a slime with spiderman powers. I can provide more context if you like.
I opened lots of topics here, if you are really interested to help, you might as well take a quick look at some of them.
Since I don’t know about C++ at all, if possible (which I am not sure) I would prefer using a hybrid approach, just making the core part of the mechanic in the c++ and doing everything else in blueprint, as I said if possible. I am in need here. Thanks y’all as advance
Or basically I could writed, I want to replace set gravity direction node with some code in C++ in a pawn class.
In the pawn class, you can just make your own gravity code in blueprint, you don’t need C++. It’s only if you want to make changes to the player character that you’ll need it.
I have a pawn that does something like this, I’m hunting out the code…
I see, this seems awesome, I will try to impelent this, get ready for bunch of follow up question (joking). By the way this sytem is not what I have imagined but I think it’s better because it’s more dynamical and natural, much better than what I was trying to make. Edges are not a problem, most of 2d objects will be low resolution pixelated and there will be alot of sharp edges on the map, so probably I will just add other high quality parts for edges so it looks natural, mabe there is an effect or something for that to make it easier in Unreal. Anyways, thank you very much.
No, error 403 again. But I can see your other snippets?? I tried with a different account and the resoult is same. I know I am asking too much but, by any chance can you publish it in github? Plese :))