https://github.com/TimChen1383/GrabObjectComponent
A Grabber component let you highlight and grab an object in runtime
https://github.com/TimChen1383/GrabObjectComponent
unreal-engine
Last synced: 10 months ago
JSON representation
A Grabber component let you highlight and grab an object in runtime
- Host: GitHub
- URL: https://github.com/TimChen1383/GrabObjectComponent
- Owner: TimChen1383
- Created: 2023-10-21T15:00:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-26T20:41:32.000Z (about 2 years ago)
- Last Synced: 2024-10-24T02:32:36.789Z (about 1 year ago)
- Topics: unreal-engine
- Language: C++
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GrabObjectComponent
The Grabber component let you highlight and grab an object in UE level in runtime by using physics handle.
To make the Grabber component work, you need to do follow :
- Add Grabber component to default pawn (if we play the game with default pawn)
- Set Grabber component’s “SearchScale” to the value we want as it will be the length of physics handle
- Set Grabber component’s “HighlighValue” to the value we want as it will control the highlight value when we pick an object up
- In Blueprint, connect a Keyboard Input Event to "ActionGrab" and "ActionRelease" functions so that we can grab the object when we press it
- Make sure the objects we want to grab has enable “simulate physics” and set the collision preset to “PhysicsActor”
- Add a scalar parameter called “Highlight” in the pick-up object’s material and connect to emissive. We can control the highlight value in runtime if we have the object been picked up
