Latest Vector Activity
A major part of gameplay is making sure objects are at the right places at the right times. This means you must understand the mechanisms behind how objects in a scene are placed at a particular position. You need to know how to do stuff like program a door to swing open when activated, or calculat…
Programmer71 said:
This looks like a job interview
Yes, it does. Thread locked.
nvm, i found my solution after resting my eyes,
i need to use the plane normal cross product with the look (camera position - center) and i get my right vector I can use to position base on the plane's dimension. ?
I cant seem to delete a thread i created
JoeJ said:
This is how it works:…
Okay, yes, I believe that I understand now. Thank you for the explanation! ^_^
Update on my method: I believe that I've managed to reduce the issues that it has to a tolerable level, and indeed, have it working in my project. ^_^
In short, when the player's position li…
Closing. This thread is starting to attract low quality posts.
OP, feel free to start a new topic.
yusufabi said:
its not erasing last element of vector. i would like to erase enemies from my class this is my problem
Please explain in words how this erase code works.
Learning to program takes around a decade or so, so it's understandable why you make games as well :D
Thanks@a light breeze , great advice here! I think I'll start with with approach #2
In 3D, 1+1 vector doesn't necessarily make it a 2 vector. That only works correctly if both vectors are fully aligned. Ie (1, 0, 0) + (-1, 0, 0) is much shorter than length 2.
Hello you beautiful people,
For my project I'm trying to build a good rope swinging mechanic. Basically I have an actor in the world that serves as my hook point, and when the character is in range you can press left click and he sends out a rope that attaches to that actor. Below is an …
LeftyGuitar said:
A simple oversight on my part.
I was also always confused and messing about with the off-by-one problems with indices.
At some point I had enough of it and decided to always use 0-based indices from that moment. That made life a lot simpler, as ‘suddenly’, relations between size, ind…