AnubisWolfman
New member
Hello,
I am trying to make an ability that simulates a "Jet Pack", letting the character float in the air, as well as let him be moved by player's input in all axis while floating. However I can't seem to make the character float because he keeps falling to the ground. I also can't seem to gradually make him rise from the floor. The one thing I could manage to do was to bring it instantly to an upper position (and then he just falls again). I am kind of lost here.
Could you help me to know what would be the correct approach here ? Which method of the ability class should I be overriding in order to the movement code not be replaced by the code of the controller ? Should I also involve gravity settings of the character controller ? could you please give me a code example on how to move the character in a upward or downward direction in a context of an Ability without the character be falling automatically to the ground ?
Any help would be appreciated. Thank you in advance for your help.
I am trying to make an ability that simulates a "Jet Pack", letting the character float in the air, as well as let him be moved by player's input in all axis while floating. However I can't seem to make the character float because he keeps falling to the ground. I also can't seem to gradually make him rise from the floor. The one thing I could manage to do was to bring it instantly to an upper position (and then he just falls again). I am kind of lost here.
Could you help me to know what would be the correct approach here ? Which method of the ability class should I be overriding in order to the movement code not be replaced by the code of the controller ? Should I also involve gravity settings of the character controller ? could you please give me a code example on how to move the character in a upward or downward direction in a context of an Ability without the character be falling automatically to the ground ?
Any help would be appreciated. Thank you in advance for your help.