About 51 results
Open links in new tab
  1. vector - Game enemy move towards player - Stack Overflow

    Apr 12, 2010 · I'm creating a game in c++ and OpenGL and want an enemy to move towards the player. What is the best method of making game objects move towards other game objects, that works in …

  2. What is the need for normalizing a vector? - Stack Overflow

    Reading Godot Game Engine documentation about unit vector, normalization, and dot product really makes a lot of sense. Here is the article: Unit vectors Ok, so we know what a vector is. It has a …

  3. 2d game vector movement C# - Stack Overflow

    Dec 17, 2013 · This 'unit' is the normalized movement vector (in my example: 'norm_mov_vec'). So to compute final position, you multiply number of seconds (time), number of units per second (speed) …

  4. unity game engine - how to visualize the direction of a moving ...

    Nov 28, 2022 · 1 so I have a moving game object and i want to visualize the direction of its velocity as an arrow ( vector ) , I could not find a function that enables me to show that vector in the scene ! …

  5. c# - What is a Vector2 and Vector3 in Unity? - Stack Overflow

    Feb 1, 2019 · Vector's are mathematical models that model both direction and magnitude. A Vector2 is 2D, and a Vector3 3D. A vector2 (1,5) is a direction with the ratio of 1 part x, and 5 parts y. E.G a line …

  6. 2d - Vectors games dev - Stack Overflow

    Apr 24, 2023 · So a game object traveling the distance or magnitude (amount by which the game object moves) of the vector arrives at what should be considered "the destination" which should be the tip of …

  7. Why use a Vector to represent velocity in a game?

    May 19, 2009 · 2 You would use a vector because you can have velocity in 3 dimensions. In other words, the 3D velocity is the combination of distance/time in all 3 dimensions. It might be better to …

  8. How do I calculate the yaw, pitch, and roll of a point in 3D?

    Oct 20, 2019 · Note: Instead of "yaw, pitch, roll", I'm going to use the conventions "heading, pitch, bank" as defined by 3D Math Primer for Graphics and Game Development by Fletcher Dunn. Firstly, notice …

  9. unity game engine - How to get normal vector of the object hitting ...

    Jul 27, 2018 · When I use On Trigger Enter method it doesn't return normal vector of the collider i'm hitting. If I would use On Collision Enter it can do so as far as i know. But i need to work with triggers …

  10. 2D vector modelling for game development - Stack Overflow

    Jan 17, 2010 · However I'm rather more interested in creating 2D vector-based models than 3D, as I'm perfectly happy to keep trying 2D games for a while yet. Does such a concept as 2D modelling exist?