The keyword this
is a way in code to talk about the object we are working on. The .entity
part refers to a property of the script – in this case, the entity that it is part of.
That entity has a property called worldTransform
which has a property called position
, and the position has a property named y
.
This is a very long string of properties to start with, but we’ll learn more about how to use this as we go along.