How the wheels of a kart move individually - object oriented programming

        Have you ever pushed mini car toy in the kindergarten? When we push the car, we don’t control each of the wheels in the car frame. The force over the car is separated into the four part in the car that makes the car and four wheels move at the same time to the same direction.

    I got a cool item from Nintendo Switch mall and it is the MarioKart (Mario is the character in the Nintendo games) and I can move this kart with the panel named Nintendo Switch with the game interface in the screen playing racing game with virtual sources and real physical kart on live.

   



   The electric kart is composed of controlling module and signal acceptor and the four motors to control each wheel. motor has no ability to memorize the data from the controlling part. The temperate memorization happens in the controlling part accepting the physical signals from Nintendo Switch device.

 

    The programming language named C++ is the programming language supporting object-oriented library system for the human-closed programming environment. The programming languages like C is closed to the original form of logical form in the computer that is too complex to realize the individual elements in the assembly virtually in the programming form with computer languages. the object-oriented programming helps us bundle the code source for each individual parts for programming and the (kind of bundle) bundle for management for making the connections among them will finally form the group works as the one object. Imagine the real gasoline car. It has 20 thousands parts that each had different functions in the whole group. So... the each part will be the each script files in the library and the joint connecting those parts is also the script files.





    Finally, the C++ system bundling each MarioKart wheel is located in the virtual ‘yield’ and the converter converts the virtual wheels into the physical signals that forms vector and force information that finally moves each wheel and the whole car movement.


    So the temperate data is not located in the wheels but in the controlling part of in the Nintendo Switch. When the signal is cut and if the kart is malfunctioning, it means the bungle data in the Nintendo switch memorized the data incorrectly and that is the reason why if we turn it off and on again, it works. (If you turn it off, the temperate data is deleted)




Article by Justin Kim


Comments