Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 98999

GLM is a C++ math library based on the GLSL language.

0 votes
2 answers
2k views

Gradually rotate vector towards another vector

I can rotate it to face it's opponent like so: glm::vec3 opponentRefPos = opponentPos - position; //for comparing AI's opponent's position to AI's position glm::vec3 directionTarget = glm::normalize …
Saitama9932's user avatar
0 votes
1 answer
414 views

Algorithm to draw particles in correct order?

::mat4 model; glm::mat4 view; glm::mat4 projection; int particleToDraw = drawOrder [particle]; model = glm::translate( model, glm::vec3 ( smokeParticles [particleToDraw].position.x, smokeParticles [ … particleToDraw].position.y + 10.0f, smokeParticles [particleToDraw].position.z ) ); model = glm::scale(model, glm::vec3 ( smokeParticles [particleToDraw].scaleFactor ) ); glm::vec3 diff = glm::normalize …
Saitama9932's user avatar