3 ms·
To me it seemed the other way around. By casting, I'm telling the compiler that it has a mousePosition property. But I think you're right. This is an simple ex
by k__ 10y ago
To me it seemed the other way around. By casting, I'm telling the compiler that it has a mousePosition property.
But I think you're right. This is an simple example and the Player object could have a huge bunch of properties I don't need to guess later, I just need to cast and be done with it.