🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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.
![project points to a plane using camera's right vectors](https://uploads.gamedev.net/forums/monthly_2022_09/16987007ff504bb4b936aac9f60a99aa.image.png)
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
![How take next step in vector terrain rendering? [HELP!]](https://uploads.gamedev.net/forums/monthly_2020_09/f49d6a5a680c4012bb411cabd7fd42e2.hexQ1.png)
Thanks@a light breeze , great advice here! I think I'll start with with approach #2
![Unity - How do i clamp the speed of my character controller](https://uploads.gamedev.net/forums/monthly_2020_03/c041d5847eb747a1a12a3b3d9c13abdb.image.png)
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.
![Trying to visualize vectors (UE4 Blueprints)](https://uploads.gamedev.net/forums/monthly_2020_03/e334300eacfb4c9b96cb40ce130363c1.image.png)
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…