Hey man, this is probably not the right spot for such question but i am kind of desperate and i didnt find another way to contact you..
So i stumbled upon your Project and i was quite amazed by your results in the youtube videos.
I thought i try to implement this using blueprints (which i do reget a little bit i have to say) but i'd like to stick with it.
I used your code as.. inspiration so to say. but it just doesn't work right. And there are a few things i dont understand.
I just try to get the bunnyhopping going for now, all the rest is work for another day (stamina, water friction, Trimping, etc).
In your CalcVelocity function there is a lot of stuff i dont comprehend right at the start. I feel able to follow again right before you apply friction, what is nescessary in this function just for BHopping? What does ApplyRequestedMove
? and what is bForceMaxAccel
?
Also you use a Variable named "Accelerate". And i dont really understand what this value is. I thought it would maybe the the recent acceleration from the characterMovement componant, but that cant be because if its zero there is no way to actually start accelerating. Without using it, or using 1 in its place makes my Actor go.. suuper slow. it seams to be necessary, or something else in my BP is way off..
And then I thought its directly from the input, but in this case i don't understand how it can have magnitudes that differ from 1.
Also where would there the difference to wishSpeed then..?
Is it just for Analog controls? (where its possible to accelerate just, eG. 30% speed?)
If you have no time, motivation or just not feeling to respond I can understand, but if you do I would be highly highly thankful.
Its just the start for me in unreal engine, and the next step will be code for sure, I thought BP would be easier to start out but just 3 lines of code can be a mess with blueprints...
I got a few screenshots here to, i tried to tidy them up as much as I could.
Acceleration "function":
Friction "Function":
Actor base values:
Movement Component Values:
Again, if you can help me out here, or maybe just parts of my question, or whatever, i would be really grateful!
Greetings from Vienna,
thanks for the awesome Project!
Marcel
Edit: I did not do anything to prevent friction from kicking it yet, so I know BHopping would not work yet, but i tried to get the basics down first, like.. walking normally