![]() ![]() ![]() step ( 0.02 ) # Step the simulation one step forward space. SpaceDebugDrawOptions () # For easy printing while True : # Infinite loop simulation space. add ( body, poly ) # Add both body and shape to the simulation print_options = pymunk. mass = 10 # Set the mass on the shape space. create_box ( body ) # Create a box shape and attach to body poly. position = 50, 100 # Set the position of the body poly = pymunk. gravity = 0, - 981 # Set its gravity body = pymunk. Space () # Create a Space which contain the simulation space. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |