Wishlisht my game Moving In: store.steampowered.com/app/2307660/Moving_In/
@AntonioRColon
8 ай бұрын
Wow! This is a great project use of your controls.
@Jestertdye
Жыл бұрын
The Position3D node seems to have been removed in Godot 4, it seems that it was renamed to “Marker3D” hopefully this helps someone 👍
@Computer-instructor
8 ай бұрын
Thanks ya I had a big trouble finding that bruh
@vitisom
8 ай бұрын
thank you
@WonderVault_5
2 ай бұрын
thanks bro
@TheAndreadbx
Жыл бұрын
man, just learning Godot after years of Unity, your video was a literal lifesaver for me! i basically had everything else figured out (with your same wording lol, mine was like pickedObject) except for the actual movement, thank you!
@abradotcs
Жыл бұрын
im glad it was helpful
@zzz11zz44
10 ай бұрын
Something I added is distance calculation between a and b vectors so it looks like this var a = picked_object.global_position var b = hand.global_position var c = a.distance_to(b) var calc = (a.direction_to(b))*pull_power*c picked_object.set_linear_velocity(calc) direction_to is same as (a.vec3-b.vec3).normalize() I had to add this because I was experiencing crazy jittering on high fps. This solves the problem and picking up is very smooth, and as further you are from object the faster it comes back to you
@Sirmatorz
4 ай бұрын
Thank you man you're a life saver i had issues with smaller sized objects and your code helped
@Michael-rk9ru
8 ай бұрын
Absolutely fantastic tutorial! You really made it clear to a beginner what was going on without having to assume too much. Thanks a lot!
@abradotcs
8 ай бұрын
You're very welcome!
@Rasmez
2 жыл бұрын
This, this is the thing that I was looking for in the reddit post, thank you :D
@abradotcs
2 жыл бұрын
Welcome!
@darmawanrendy4481
5 ай бұрын
i think i follow the tutorial completely, but i dont know if i missed something, picking up is working but it doesnt move to the hand position. it just pick up from where the object position is, i even tried to move the hand far away, even behind my character. and it just do the same, doesnt make it come to my hand. help
@destyde
11 ай бұрын
Thank You so much, It really helped!
@ThaMentalGod2003
Жыл бұрын
yo bro, i thank u a fucking lot for this tutorial 😎this is PERFECT for my game. 😎😎peace and positivity, thx for putting up this vid
@abradotcs
Жыл бұрын
You are welcome!
@aneckdope
Жыл бұрын
great video! cheers
@MilkBanana
2 жыл бұрын
dope tutorial
@MiniKam
Жыл бұрын
I tried this Godot 4, and I might be overlooking something, but the raycast despite looking at the object and left clicking doesn't print anything, but everything is exactly the same
@yazankhangaming3538
10 ай бұрын
did you find a way?
@SunJaycy
7 ай бұрын
your raycast is probbaly inside your collision capsule, i move mine forward then it works
@landozr2443
11 ай бұрын
Quick question, how do you translate this into Godot 4?
@Wonkabonka
2 жыл бұрын
in this tutorial youre using position3d but on reddit you said you use 6dofjoint to make it rotate with the player and not around its own center. how did you setup the 6dofjoint? ive tried fiddling with it and it doesnt really give a similar result. Did you connect it to a staticbody or something to stop center rotation?
@abradotcs
2 жыл бұрын
Yes you are right i use a static body as well and you will still need the position 3d to make it work. I am planning to show how to do this in a tutorial.
@Wonkabonka
2 жыл бұрын
@@abradotcs great!
@SandSeppel
Жыл бұрын
Can I get your cursor texture please 🙏?
@abradotcs
Жыл бұрын
Its just a white dot with a thin black outline 😅
@SandSeppel
Жыл бұрын
@@abradotcs I know but I dont know how to make that😅
@abradotcs
Жыл бұрын
@@SandSeppel join my discord i can provide it there 😅
@maciejpexons1248
2 жыл бұрын
Hey, you fix problem with collisio?
@abradotcs
2 жыл бұрын
what collision?
@maciejpexons1248
2 жыл бұрын
@@abradotcs box is colliding with othr object when you pickup? have you discord?
@abradotcs
2 жыл бұрын
@@maciejpexons1248 yep check the description
@MammothGamez
10 ай бұрын
If anyone is trying to figure out how to get this to work with Jolt Physics you need to add a script to your ray-cast func _ready(): add_exception(owner) " I found out that the reason @crwdex temp fix of moving the ray cast out of the head worked and that is because the ray is picking up the player body, so by adding a script to the ray-cast to ignore the player it works hope this helped took me 4 days to figure out.
@vibingLieke
4 ай бұрын
Thank you so much! that fixed it for me
@mightyleonidy6166
5 ай бұрын
Whenever I try and pick up the cube, it just jerks to the side and doesn’t follow my cursor. If anyone can help, please do. Thanks.
@Mac3k
3 ай бұрын
If somebody have problem in Godot 4.0 with no moving RigidBody3D when Player hit its solve. - CharacterBody3D => Collision => Layer 2, Mask 1,2 - Interaction => Collision => Collision Mask 1,2,3 - RigidBody3D => Collision => Layer 3, Mask 1,2,3
@Wonkabonka
2 жыл бұрын
I keep coming back to this video to see the beautifulness of what i couldn't do on my own. This video really deserves much more views holy mama!
@abradotcs
2 жыл бұрын
Lol thanks for the kind words really appreciate it:D
@zlemmy
2 ай бұрын
Sorry for late comment but i have followed the code exactly. But when press the pick up button, it drops the object after less than a second. does anyone know what might be wrong?
@Retrobro11
8 ай бұрын
for some reason when i pick the object up it goes really far away when i hold it? dont know how to fix it
@CebGIN
2 ай бұрын
Probably you are using an local position instead of a global position
@spideyempire4110
3 ай бұрын
Please make a video on holding it in our hand like tourch etc
@escalepsed
2 жыл бұрын
Wow this is so much simpler than my own method. Interested to see how you handle rotations as this was something I could never figure out fully.
@abradotcs
2 жыл бұрын
haha :D im glad its helpful hopefully in the 2nd part i will talk about the rotation and what was your method exactly?
@crwdex
Жыл бұрын
@@abradotcsHi, what about jolt - this new engine is mooooore faster than default
@thatfranzferdinand
9 ай бұрын
How did you make the white outline shader when you pick up an object? I've been looking for something like that forever but solutions provided in all of the tutorials I've found are pretty janky. Yours looks exactly like what I am looking to recreate. I am kinda new to shaders so I haven't figured out a way to do something like that yet. :)
@AntonioRColon
8 ай бұрын
Besides printing the message to the console, I can confirm that this awesome tutorial works perfectly in Godot 4. Thank you, Abra!
@slluxxx
8 ай бұрын
because you are using "picked_object.global_transform.origin" its trying to put 0,0,0 from the objects local space into the hand, completly moving the body around. this is an undesired effect
@darmawanrendy4481
6 ай бұрын
So what the solution ?
@darmawanrendy4481
6 ай бұрын
So what the solution ?
@slluxxx
6 ай бұрын
@@darmawanrendy4481 there are many ways to solve this. I'd fire a raycast, convert the hit from global to local and attach that to whatever you need. It depends on where you actually want to grab the object.
@indieology7336
2 жыл бұрын
Really awesome! a bit of voice over or added text edited in could go a long way to help people understand what your doing exactly and why. Subscribed!
@abradotcs
2 жыл бұрын
Thank you so much! Im glad it was helpful :)
@Wonkabonka
2 жыл бұрын
It finally arrives! The video if been looking for, for 6 months 😭
@abradotcs
2 жыл бұрын
I am hoping its helpful 😂
@raymonddurelli8610
2 жыл бұрын
Could you do a tutorial on moving objects with the mouse? I think I understand it in theory but can't figure out how to implement it. You need to get the mouse position, cast a ray, get the position of the new location, cast a ray, and then apply movement. Raycasting confuses me though, especially in Godot 4.
@abradotcs
2 жыл бұрын
Do you wanna do this in 2D or 3D?
@raymonddurelli8610
2 жыл бұрын
@@abradotcs 3d. I don't think you even need raycasting for this in 2d. Since mouse coordinates are a vector2, but for 3d you have to get the vector3 with signals or rays. I feel like there should be a dozen tutorials on this already as it would be a key component to so many styles of games (card games, god games, strategy) but so many indie devs avoid 3d in Godot I can't find a single one.
@abradotcs
2 жыл бұрын
@@raymonddurelli8610 I am assuming you are talking about moving objects that are on a flat plane with your mouse like building bases in strategy games then I don't really think it would be so hard to do that. I wanna get into base building in 3D so i will also look at moving objects in 3d with your mouse. I don't know when i will be able to make a tutorial about it though. Stay tuned i will post updates.
@raymonddurelli8610
2 жыл бұрын
@@abradotcs That's a good example. I was personally working on a 3d card game before taking a break on it. Godot 4 changes how raycasting works, but I heard Godot 3 had an item picking example but idk if it was in 3d. I'll definitely stay tuned.
@abradotcs
2 жыл бұрын
@@raymonddurelli8610 Are you using Godot 4 for your project?
@Soulcode-k
3 ай бұрын
That was so helpful thanks, I learnt a lot, and the way you explained it was also amazing, I was first trying to do this on my own by controlling positions and rotations but it got too complicated, this tutorial was just the thing I needed, Thanks❤❤❤
@wirit0_020
6 ай бұрын
When i try to pick up an object it crash my game, it say "attempt to call function 'get_collider' in base 'null instance' on a null instance" pls help
@crwdex
Жыл бұрын
Does anyone knows how to implement this interaction type with jolt physics in godot? (Doesn't working for now, I also know about 3DRigidBody and 3DMarker, but anyway doesn't working with jolt) Because I wanna change the physical engine because of very poor performance of original godot engine)
@abradotcs
Жыл бұрын
I tried my system with Godot Jolt but it didn't work unfortunately. Idk if its fixable or there is a workaround but feel free to explore and let me know please!
@annoyingghost
Жыл бұрын
Have you found a way ? Still not working with JoltPhysics, the raycast doesn't detect RigidBody3D. But what's weird is that when I use a raycast outside the Player node it works normally, with the same code...
@annoyingghost
Жыл бұрын
For some reason the raycast work in the Player node, but not when inside the Head/Camera node, so as a workaround for now I put the raycast outside of the head (still inside the Player node) and update its rotation via code to be the same as the head.
@MammothGamez
10 ай бұрын
@@abradotcs to get this to work with Jolt Physics you need to add a script to your ray-cast func _ready(): add_exception(owner) "
@likestorml
7 ай бұрын
whats the new name for the Position3D node or is it still in godot 4 or no
@abradotcs
7 ай бұрын
Marker3D
@bingobangini
2 жыл бұрын
Would love to see the second part of the tutorial, any estimate of when you will make that? Also how can I make it so the item turns with the players Y rotation? Like in source games for example.
@abradotcs
2 жыл бұрын
It is coming real soon! It will work exactly like source games. Stay tuned :D
@graphtet3751
8 ай бұрын
When i try to pick up an object it launches it away at a fast speed and when i press the interact key again it stops how do i stop it from launching the object
@vielassiel9292
7 ай бұрын
I had the same problem... So I'm going to assume that like me you installed the Jolt Physics System.. I know this may suck to hear, but if you want to use the code in this video you can not use the Joly Physics System. You'll need to change back to the default physics.
@graphtet3751
7 ай бұрын
@@vielassiel9292 I discovered that i had the a and b variables mixed up changing the a and b made it function as intended
@CombineProduct
8 ай бұрын
Thank you very much!!
@RGBA
2 жыл бұрын
awesome bro, when part 2?
@Maslak791
2 жыл бұрын
Finally :)
@icomputo
Жыл бұрын
Godot 4 update?
@abradotcs
Жыл бұрын
This code works perfectly with Godot 4 you should try it! If you encounter any problems feel free to join my discord server I will be happy to help you.
@crwdex
Жыл бұрын
@@abradotcsjust change RigidBody to RigidBody3D and also Position3D to Marker3D But.... Jolt, dude, need to relocate this code to jolt physics engine, because of amazing perfomance in compare with default
@b0t_nz8
Жыл бұрын
Thanks it help me making sliding door with raycast im only use x axis, but rigid body sliding to much can i stop the sliding when door reach max_translation ?
@abradotcs
Жыл бұрын
Maybe use a joint? That might do the trick
@Chibi.Xero.Shiba-oficial
10 ай бұрын
Where i can find the code of your character controller?
@AleksandarPopovic
2 жыл бұрын
This is nice ide, keep going, part 2 of tutorial when?
@abradotcs
2 жыл бұрын
It is coming soon!
@isaac8228
8 ай бұрын
how much did your game earned?
@deepblue-jj3vu
Жыл бұрын
it is not working. it is spinning around a point
@lonegamedevlongjourneyman
6 ай бұрын
very usefull thank you
@Wonkabonka
2 жыл бұрын
Do you also take tutorial requests?
@abradotcs
2 жыл бұрын
Sure why not! If its something i can do i can make a tutorial about it.
@Wonkabonka
2 жыл бұрын
@@abradotcs i already replied on reddit😅
@abradotcs
2 жыл бұрын
@@Wonkabonka alrighty :p
@peadamo
9 ай бұрын
very good, thanks
@TheRealZoZ
Жыл бұрын
Thank You very much ❤
@maciejpexons1248
Жыл бұрын
I have problem with RigidBody, its not colliding well with wall floor. Anybody can help?
@abradotcs
Жыл бұрын
Small rigid bodies have clipping problems there are some work arounds for that I am planning to make a video about it stay tuned!
@maciejpexons1248
Жыл бұрын
@@abradotcs so how you Fix it in your tutorial?
@abradotcs
Жыл бұрын
@@maciejpexons1248 Join my discord channel i would like to help you there
@kramkrum3672
Жыл бұрын
How did you do that object highlighting in the intro?
@abradotcs
Жыл бұрын
I used an outline shader
@soggy-biscuit
Жыл бұрын
i want to increase the strength of the pull but also the throwing force becomes more extreme when releasing, is there a way to fix this
@abradotcs
Жыл бұрын
I guess you can try normalizing the power when released
@soggy-biscuit
Жыл бұрын
@@abradotcs thank you for your response, but ive figured it out. when i released the object i just used the last value in the linear velocity to soften it picked_obj.apply_central_impulse(picked_obj_retaliation_force * -0.6) removeOBJ() your tutorial is great and its helped me alot!
Пікірлер: 116