@ramesaliyev i say you would have to learn what a vector is. If you are going to be making games then you will be using vectors here and there so learn it. A Vector3.h is basically the class header for my Vector3. A simple explanation of creating a Vector3 class is that it contains x, y, z coordinates. You can have a function to set them and get them or just have them public to access them directly or set them in the constructor. Get familiar with vectors. Google it if you have to
You don't need the public keyword in a struct. Structs are public as standard. Classes are private as standard. Also, use "const int WorldSize = 64;" rather than #define "WORLD_SIZE 64"
@captainsurrey oh didnt realize that haha. I forgot to take it out because I had it as a class before instead of a struct. Thanks for pointing it out though
Dude, I'm newbie on C++, how can i create my own vector class? What is the Vector3.h? Help please.
ramesaliyev 1 month ago
@ramesaliyev i say you would have to learn what a vector is. If you are going to be making games then you will be using vectors here and there so learn it. A Vector3.h is basically the class header for my Vector3. A simple explanation of creating a Vector3 class is that it contains x, y, z coordinates. You can have a function to set them and get them or just have them public to access them directly or set them in the constructor. Get familiar with vectors. Google it if you have to
iGunSlingeRv2 1 month ago
Does this video require that I have already built out my own vector class?
Great tutorial by the way. This is exactly what I needed.
FacelessProjects 1 month ago
@FacelessProjects If you dont already have a vector class then yes you will need to create it. Thanks, glad i can help
iGunSlingeRv2 1 month ago
You don't need the public keyword in a struct. Structs are public as standard. Classes are private as standard. Also, use "const int WorldSize = 64;" rather than #define "WORLD_SIZE 64"
captainsurrey 4 months ago
@captainsurrey oh didnt realize that haha. I forgot to take it out because I had it as a class before instead of a struct. Thanks for pointing it out though
iGunSlingeRv2 4 months ago
Awesome video thanks for uploading this.
alexwhb122 4 months ago
@alexwhb122 no problem. if you have any questions let me know. Enjoy :)
iGunSlingeRv2 4 months ago