I explain everything here in Turkish and English. You can directly download and use the project.
First, let's create a BP_Box Actor and add anything you want as a Static mesh.
Öncelikle bir BP_Box Actor oluşturalım ve Static mesh olarak istediğiniz herhangi bir şeyi atın.
We need to add a scene, this will be our anchor, like our hand holding the box, you can put this point there in your hand if you want.
Bir scene eklemeliyiz bu bizim anchor'umuz olacak kutuyu tuttuğumuz elimiz gibi isterseniz bu noktayı elinizin oraya koyabilirsiniz.
Give a name.
We need a linetrace that we need to interact with BP_Box. BP_Box ile iletişime girmemiz gereken bir linetrace ihtiyacımız var.
Our camera's position in the world gives us. Create a variable called Linetracelenght and give it the value 500. It will be float.
Kameramızın dünya konumu başlangıçı verir.Linetracelenght adında bir değişken oluşturun ve buna 500 değerini verin float olacak.
Make pure if you want.
Make for duration
Make out hit break hit result. I don't recommend using Cast, but it's a simple way.
Out hit'i break hit result yapın. Cast kullanmanızı önermem ama basit yoluyla böyle.
We need to attach our anchor and box, used this since they are both components.
Birleştirmemiz gerekiyor bizim anchor ve box'ı Her ikisi de bileşen olduğundan bunu kullandık.
Finally, we create a branch and check whether there is a box or not, and we take or leave the box accordingly.
Son olarak bir bracnh oluşturup kutunun var olup olmadığını kontrol edip ona göre kutuyu alıyoruz veya bırakıyoruz.
Sorry for my bad English. If you have any questions, please contact me on discord. DC: Itamyl.
Sorularınız varsa discord üzerinden yazabilirsiniz DC: Itamyl