Possible bug
If this question has been answer, please tell me the post. Anyway
So I'm working with this game where you have to deal with gravity (I use the acceleration behaviour) and I track the linear velocity y. So every time there's a overlapping the velocity y goes to 0 which I find right. Since I need the velocity before the collision happens a simple overlapping condition is not good for me (maybe the process of what I think is happening it's actually not happening). So I created a timer to track the velocity but it goes to zero anyway. Then I tried my own timer and the velocity goes to zero (linear velocity y attribute). Finally I decided to track my own velocity y with my own timer code but even that the velocity goes to zero when there's overlapping but after that, it goes to the last value before overlapping.
Does any know why?! Am I doing everything wrong?!? It's The Matrix playing tricks with me?
So I'm working with this game where you have to deal with gravity (I use the acceleration behaviour) and I track the linear velocity y. So every time there's a overlapping the velocity y goes to 0 which I find right. Since I need the velocity before the collision happens a simple overlapping condition is not good for me (maybe the process of what I think is happening it's actually not happening). So I created a timer to track the velocity but it goes to zero anyway. Then I tried my own timer and the velocity goes to zero (linear velocity y attribute). Finally I decided to track my own velocity y with my own timer code but even that the velocity goes to zero when there's overlapping but after that, it goes to the last value before overlapping.
Does any know why?! Am I doing everything wrong?!? It's The Matrix playing tricks with me?
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User