Hello, I’m wondering if how you’d have it to where being on certain actors impacts your movement speed.
I’m using a modified version of Cobra Code’s 2D top down movement code, which allows the movement speed to change when the float “MovementSpeed” changes.
Hey there @SSneakythief! One method you could use would be doing the same thing many users do for changing the step sounds based on the material they are over. This consists of making a downward trace on each step, getting the physical material, and then choosing which sound to make. The change you’d make would be instead of changing the sound, you would just set the movement speed.
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
works like a charm, though I haven’t a clue on how to make the friction dynamic aswell (for ice physics namely), the friction on the terrains don’t work and setting it on the character just makes it universal.
Physics materials don’t affect non-physics enabled objects in the same way. Since the character class isn’t using physics to move, you’ll need to adjust the ground friction, acceleration and deceleration when you come in contact with that physics material. This video does something similar but not quite as well as described:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
Works Great!
i’ve even sort of figured out how to do the opposite to make surfaces sticky.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.