What is the effect of parenting the sword to the hand?
sword.setParent(hand);
- It follows the hand's transform
- It turns completely invisible
- It doubles its current size
- It is immediately destroyed
A child inherits its parent's position, rotation and scale in the scene graph.
Play Game Dev ▸