Skip to content

Commit

Permalink
fixed mouse coordinates not properly reaching screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntaf committed Sep 11, 2014
1 parent 44ec2a2 commit 177be87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particlemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void ParticleManager::updateParticles(const float& delta, glm::mat4& ProjectionM
if (p.life > 0.0f){

p.addForce(
(glm::vec3(glm::vec3(-mousePosmdl.x*500,-mousePosmdl.y*500, -70.0) - p.pos) * (float)(pressed*d_MOUSEFORCE/pow(Distance(glm::vec3(mousePosmdl.x,mousePosmdl.y, -70.0f),p.pos)+10,2))));
(glm::vec3(glm::vec3(-mousePosmdl.x*1500,-mousePosmdl.y*1500, -70.0) - p.pos) * (float)(pressed*d_MOUSEFORCE/pow(Distance(glm::vec3(mousePosmdl.x,mousePosmdl.y, -70.0f),p.pos)+10,2))));
p.addForce( -p.speed*d_DRAG);

glm::vec3 prevPosition = p.pos;
Expand Down

0 comments on commit 177be87

Please sign in to comment.