Looking for some advice on animating my models. And more specifically had 2 questions. Haven't actually started the animation process yet, just looking for some pre-emptive advice so i can avoid having to double-handle everything by accidentally bumbling down a method that turns out to be a dead-end...
I'm currently putting together my player character in blender but I obviously want to be able to go back and make changes to the visual design later if needed. But i do want to get the skeleton and animations worked out so i can import them into godot and continue work on everything else in the mean...
I'm making a 3rd person shooter and was using a ring of 8 SeparationRayShape3Ds around my character to handle stairs (1 ray at each cardinal and ordinal points). To prevent my character from suddenly launching up any slope that isnt perfectly vertical i paired up each SeparationRayShape3D with a Ray...
I'm currently putting together my player character in blender but I obviously want to be able to go back and make changes to the visual design later if needed. But i do want to get the skeleton and animations worked out so i can import them into godot and continue work on everything else in the mean...
might need to manually define a deadzone?
Input.get_vector() allows for a 5th argument for the deadzone on the range of 0 to 1
So maybe try:
var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down", 0.2)
Try adjusting that "0.2" up and down to experiment.
HOWEVER! From what I've read, "Input.get_vector()" apparently uses a circular deadzone, so if you are testing with a controller you may have some slight stick-drift going on, resulting in non-perfect up/down movement.
What you might want to do instead is utilise "Input.get_axis", which from what i read provides separate deadzones for each axis (which helps with drift).
So try replacing:
var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")
With:
var input_dir = Vector2(Input.get_axis("ui_left", "ui_right"), Input.get_axis("ui_up", "ui_down"))
Give that a try and let me know how you go! (it might take me a while to get back to you)
Oh! Haha!
Didn't even realise this post was that old!
Glad you managed to figure it out, hope your project is coming along/came along well!
might need to manually define a deadzone?
Input.get_vector() allows for a 5th argument for the deadzone on the range of 0 to 1
So maybe try:
var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down", 0.2)Try adjusting that "0.2" up and down to experiment.
HOWEVER! From what I've read, "Input.get_vector()" apparently uses a circular deadzone, so if you are testing with a controller you may have some slight stick-drift going on, resulting in non-perfect up/down movement.
What you might want to do instead is utilise "Input.get_axis", which from what i read provides separate deadzones for each axis (which helps with drift).
So try replacing:
var input_dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")With:
var input_dir = Vector2(Input.get_axis("ui_left", "ui_right"), Input.get_axis("ui_up", "ui_down"))Give that a try and let me know how you go! (it might take me a while to get back to you)