In this lesson we learn about raycasting, which is the process of sending out an invisible beam (“ray“) to check if something is at a certain location or not. We’ll implement a very basic version of a pick up and drop system in the process.
Here is UE4’s official documentation about raycasting/tracing:
HOMEWORK
One simple thing you can try is to have the “placement indicator“ we made at the end actually move based on where the player’s reticle is located. Using the same code we used to handle identifying which object we want to pick up, can you make this switch?
Another thing you can try to exercise your class inheritance skills: Make some more pick-uppable and droppable objects using the PickupItem parent class! Maybe even give the PickupItem parent class a Text component which identifies what object it is-- you should see all the children classes adopt this same editable tex
32 views
12
8
4 years ago 00:26:38 133
Unreal Engine AI with Behavior Trees | Unreal Engine
3 years ago 00:37:41 319
The State of Unreal 2022 | Unreal Engine
5 years ago 00:50:09 28
Switching to Unreal Engine | Unreal Indie Dev Days 2019 | Unreal Engine
5 years ago 00:55:08 113
Source control in Unreal Engine | Webinar | Unreal Engine