Grabbing System

My idea is to make platform (instead of light) at the floor and make member value of weight for player and movable objects. Proper weight will open the door.

I never done something like this so just logically i think it will work like:

  • Check on an actor (movable object) if the player’s location is close enough to display press F to grab

  • Press F and make location of the object in front of the player, then update with every tick OR add this as the component to the player (but how - no idea)

  • When player hits F again he will leave object - location of an object will be the same except of the fact it will be pushed to the ground (with animation via lerp function maybe)

  • Then just check the weight and if correct doors will open


I like your ideas for creating a grabbing system. Let me know how it goes!

Privacy & Terms