DX10 Engine Plan-application ("Man on Point 100" demo, Sticky Bug repair method)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.