Stupid math question here

Hello,

I have a very, very, very, very stupid math question, but I am very bad with vector so I really need to ask it.
I want to know the position of my chase camera when I know only these things:

  • Distance between player and camera
  • The direction vector of the camera
  • The position of the player

I know it is possible and I know it is a stupid mathematics problem that is probably solve with sinus/cosinus, but I really do not know how. Someone could help me ?

Vector3f pos = playerPosition.add(direction.mult(distance));

Might be helpful:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:math_for_dummies

  1. camera.getWordTranslation().distance(player.getWorldTranslation);
  2. camera.getDirection();
  3. player.getWorldTranslation();

Ok it was really easy, well I will read the math for dummies then, I really need it ^^
Thanks dor all guys.
Do you have math for zOMG very dummies ? It would be useful to for me ^^

@toggy said: Ok it was really easy, well I will read the math for dummies then, I really need it ^^ Thanks dor all guys. Do you have math for zOMG very dummies ? It would be useful to for me ^^

Vectors are one of the easier things to wrap one’s head around. Just read the math for dummies stuff and I’m sure stuff will be clearer.