Tag:collision detection

  • Analysis of Tetris game in C language (picture and text + source code)

    Time:2021-8-1

      The following article comes from embedded Linux. The author writes code for basketball crazy I hope you can see some excellent Tetris code and try it out from the Tetris game recently. I hope you can get some inspiration from Tetris. #Let’s first understand some shapes of Tetris Altogether divided into  7  Shape, some […]

  • Three update methods in unity

    Time:2021-7-27

    There are three update methods in unity: update, fixedupdate and lateupdate. These three update methods are applied to different situations. Update update Update is called every time a new frame is rendered, which is closely related to machine performance. If the performance of the machine is poor or the scenario is complex, the update frequency […]

  • Python Tkinter super Mary source code download color collision detection test program

    Time:2021-4-18

    “”” This work adoptsCC agreementReprint must indicate the author and the link of this article Python Wizard module

  • Babylonjs: from introduction to abandonment

    Time:2020-12-9

    Learn about babylonjs, getting started: Key links:Introduction examplesImportant API examplesAPI documentImage compressionView model 1. Introduction a. Let’s start with an example,https://doc.babylonjs.com/b. Understand what elements are required to build a scene canvas, engine, scene, camera, lightc. Start to read the documentation, compare the introduction and API, and start the learning journeyhttps://doc.babylonjs.com/exa…https://imgs.developpaper.com/imgs/sprite_test.png”, 1, 80); const player = […]

  • Collision detection: point

    Time:2020-11-4

    Introduction stayCollision DetectionCollision detection is briefly introduced in this paper. When searching for information, it was found on GitHubCollisionDetectionThis project. After checking, I found that the discussion on collision detection is from simple to deep, which is very suitable for learning. On this basis, the implementation of JavaScript version is done. The following examples are […]

  • Collision detection: rectangle

    Time:2020-11-2

    Introduction stayCollision Detection :PointIn this paper, we mainly introduce the collision detection of points, and then look at the situation of rectangle. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Rectangle/Point This isSample page。 The rectangle can be drawn by the […]

  • Collision detection: Line

    Time:2020-11-1

    Introduction stayCollision Detection :RectangleThis paper mainly introduces the rectangle related collision detection, and then looks at the situation of the straight line. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Line/Point This isSample page。 Line and pointObserve the following figure: It […]

  • Collision detection: polygon

    Time:2020-10-28

    Introduction stayCollision Detection :LineThis paper mainly introduces the line related collision detection, and then look at the more complex polygon. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Polygon/Point This isSample page。 Polygon and pointEach edge and point must be detected […]

  • Collision detection: Transformation

    Time:2020-10-25

    Introduction stayCollision Detection :TriangleTriangle collision detection from another way of thinking, so far the introduction of static detection, and then look at the dynamic collision detection. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Transformation This isSample page。 Canvas basedtranslate、 rotate、 […]

  • Canvas animation game Basics (4): boundary and collision

    Time:2020-8-7

    preface In the previous articles of this series, objects often run out of the canvas. This article is to solve this problem.Please lay a good foundation before reading this article.My ability is limited, welcome to discuss together, criticize and correct. Cross border detection Suppose that the object is a circle, as shown in the figure, […]

  • collision detection

    Time:2020-6-16

    Intron collision detection (collision detection) I met this thing when I was looking for canvas related materials. I was curious, so I tried to understand it. Origin My GitHub brief introduction A concept similar to collision detection:Hit detection(hit testing) is also widely used. In computer graphics programming, hit detection is the process of determining whether […]

  • Cocos creator 3D | thumb shooting | 3D project entry practice

    Time:2020-1-21

    What’s your hit rate? Try it at the bottom of the article! Effect preview Configuration environment: Cocos Creator 3D v1.0.1 How to play: Touch the screen, slide up and shoot! Notice that rebounds move! See what your hit rate is! Realization principle In order to achieve a good shooting effect, we found a shooting machine […]