- component or inheritance ? I would use inheritance. When the Pawn is close enough to the object, the object's position changes. It should inherent from the Pawn. - How may you know what to grab? I would like to write a detection function to check if the Pawn is nearby. - what game object would you be working with? The chair and the Pawn.
component or inheritance ?
I would use inheritance. When the Pawn is close enough to the
object, the object's position changes. It should inherent from the Pawn.
How may you know what to grab?
I would like to write a detection function to check if the Pawn is nearby.
what game object would you be working with?
The chair and the Pawn.