Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 1: Moving Objects

Info: “This”

You don’t have access to this lesson
Please register or sign in to access the course content.

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.