My thoughts about grabbing an object

I can benefit from using the built-in physics to work a solution around this problem:

  1. Objects have a mass in kg.
  2. I can create a component to my player pawn. This component could be called “ObjectGrabber”
  3. It shoots a ray towards the object it’s trying to grab. The component possesses a property called “WeightThreshold”
  4. If the object’s mass in kg. is less or equal than the player’s WeightThreshold, then the player will “grab” the object
  5. If not, the player won’t be able to grab the object.
  6. The object that’s being grabbed will be referenced on a variable
  7. If the variable is null, no object is being grabbed
  8. If the variable is NOT null, then an object is being grabbed
  9. Objects can be grabbed IF bOverrideMass is true!
2 Likes

Very good thoughts! Great work for doing the challenge!

Privacy & Terms