Today, using the physical system written before, slightly modified, "is the man on Point 100" written out. (Visible engine universality still needs to be improved)
Baidu Cloud Link:
Http://pan.baidu.com/s/1mgN0vk0
In the process of writing this game found that do not solve the adhesion bug can not go on, so tracking the ball after the collision speed variable, found the problem:
Is the problem with the following code:
Run to here after the problem, when the object is running at a very small speed, but not less than the set of "minimum speed valve", this time there is something. This code is intended to be, if the object movement speed and collision normal, it is not in line with the initiator conditions, direct exit, if perpendicular to the normal (the sum of the points multiplied by 0), the direct exit to simplify the operation, but in one case, the object is very small, but not less than the minimum speed valve, so that the minimum speed can , the object moves slowly along this tiny speed, acting as if it were stuck, or trapped (fixed by a collision object).
*****************************************
I think of two solutions,
Workaround 1: Adjustment the condition for judging 0 is the minimum speed valve. This method can only be estimated, there is an unstable error, because there is a one-step point multiplication operation. I ruled out the method. Adopted the second type of
Solution 2: The processing point multiplication product is 0 without special treatment, through the subsequent Momentum theorem processing, and the next cycle of the minimum speed valve to filter. This method has very little error.
Originally wanted to simplify the operation of the instead of the lily, the lesson AH.
Modified code:
Program run:
————————————————————————————————————————————————————-
Spit Groove Link:
Looking for a job for the moment, the first shelved, his heart has not really calmed down, impetuous. A lot of friends have been helping me to find a job, really thank you very much ... But I always thought that the relationship can only be regarded as auxiliary, the strength of their own not up to the requirements, and then the hard relationship is in vain. Similar to playing DotA, war, the frontal battlefield must be able to spell, guerrilla play a key role ah.
————————————————————————————————————————————————————
Next plan:
The bullets were improved, and suddenly it was easy to design a shooting perspective game, but there was a flaw that skeletal animation had not yet been realized. The next step to realize this, do a shooting game, get two Ai in to fight. It's a piece of work that's got a shot.
*********
The ultimate goal is to create the "world".
DX10 Engine Plan-application ("Man on Point 100" demo, Sticky Bug repair method)