Grab and move object

Would you use component or inheritance?
in my opinion i think using component would be best because we are only looking to move the object. so if we using component we can say the chair ‘has a’ movable function. But thinking about it more i guess you could also say the chair ‘is a’ movable object. not sure.

How may you know what to grab?
make chair movable in the game and allow player to grab object so if player is close enough to the chair the chair moves where the player wants

what game object would you be working with?
for the chair object i believe we will need to put a component that allows the chair to be moved by the player

Privacy & Terms