Python Physics Simulation. Galton Board. Pymunk Tutorial

  Рет қаралды 15,921

Coder Space

Coder Space

Күн бұрын

Пікірлер: 17
@spinlizard1
@spinlizard1 Жыл бұрын
Your tutorials are fantastic. I have learned so much from them. Thanks for doing them.
@agentzero3209
@agentzero3209 Жыл бұрын
thank you so much for sharing your experience and code in your videos. It helped me a lot in understanding several programming concepts and solutions.
@800kpygame2
@800kpygame2 2 жыл бұрын
I couldn't learn pymunk due to lack of resources but I started learning with your video thank you
@User_bird_0
@User_bird_0 2 жыл бұрын
WHO R U GETTING JUST 225 views man you make the perfect videos keep it up
@almircampos
@almircampos 2 жыл бұрын
Very (VERY!) good tutorial. Thank you!!!
@jntb3000
@jntb3000 2 жыл бұрын
I follow the code exactly, but after adding elasticity, the ball does not bounce up at all. It just falls downward and stucks to floor. (The added friction changed the horizontal lines like in your demo.) Thanks for the great video. I've learned a lot.
@huytranvan2754
@huytranvan2754 2 жыл бұрын
Here before your channel grows big!
@CoderSpaceChannel
@CoderSpaceChannel 2 жыл бұрын
thanks. I really appreciate it
@paulthomas1052
@paulthomas1052 2 жыл бұрын
Interesting tutorial. Thanks :)
@謙虛的學仔
@謙虛的學仔 2 жыл бұрын
BIG LOVE
@frutellasweet2474
@frutellasweet2474 Жыл бұрын
Great!
@jntb3000
@jntb3000 2 жыл бұрын
my bad, small typo. Your code works perfectly
@ChrisWMF
@ChrisWMF 2 жыл бұрын
Is it OK for me to copy your code so I can play around with this stuff and learn it?
@CoderSpaceChannel
@CoderSpaceChannel 2 жыл бұрын
Yes, you can do whatever you want with this code. But comply with the MIT license
@matthewcanify
@matthewcanify 2 жыл бұрын
How long have you been coding for ?
@CoderSpaceChannel
@CoderSpaceChannel 2 жыл бұрын
about three years
@scpf2360
@scpf2360 Жыл бұрын
Why won't it work: import pygame as pg import pymunk.pygame_util pymunk.pygame_util.positive_y_is_up = False RES = WIDTH, HEIGHT = 1200, 1000 FPS = 60 pg.init() surface = pg.display.set_mode(RES) clock = pg.time.clock() draw_options = pygame.pymunk_util.DrawOptions(surface) space = pymunk.Space() space.gravity = 0, 2000 ball_mass, ball_radius = 1, 60 ball_moment = pymunk.moment_for_circle(ball_mass, 0, ball_radius) ball_body = pymunk.Body(ball_mass, ball moment) ball_body.position = WIDTH // 2, 0 ball_shape = pymunk.Circle(ball_body, ball_radius) space.add(ball_body, ball_shape) while True: surface.fill(pg.color('black')) for i in pg.event.get(): if i.type == pg.quit: exit() space.step(1 / FPS) space.debug_draw(draw_options) pg.display.flip() clock.tick(FPS) This Code Was Unfinished Because I'm Just Testing the Warning: File "/data/user/0/ru.iiec.pydroid3/files/temp_iiec_codefile.py", line 18 ball_body = pymunk.Body(ball_mass, ball moment) ^ SyntaxError: invalid syntax
Matrix Digital Rain in Python with Pygame
6:35
Coder Space
Рет қаралды 15 М.
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Рет қаралды 2 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Let's code 3D Engine in Python from Scratch
14:55
Coder Space
Рет қаралды 406 М.
Planet Simulation In Python - Tutorial
1:00:02
Tech With Tim
Рет қаралды 511 М.
Portal with 3 parts: is this possible?
14:12
optozorax
Рет қаралды 121 М.
Animation vs. Physics
16:08
Alan Becker
Рет қаралды 32 МЛН
How I make science animations
43:39
Artem Kirsanov
Рет қаралды 782 М.
In-depth Pygame Physics Explanation
14:21
DaFluffyPotato
Рет қаралды 47 М.
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 916 М.
Create Life From a Simple Rule
14:37
Brainxyz
Рет қаралды 794 М.