Giter Site home page Giter Site logo

taichihomework02's Introduction

太极图形课S1-02 加了一点点交互的行星恒星系统

背景简介

以天添老师的Galaxy代码为基础,增加了三个交互。分别是:鼠标点击增加恒星或者行星,在中心增加一个“黑洞”,还有星体的“冻结”效果。

成功效果展示

鼠标左键点击增加恒星,右键点击增加行星。

LRMB

按b在窗口中心添加一个黑洞。(因为不太了解黑洞的物理描述方法,我就直接在中间添加了一个质量非常大的星体,并且规定这个星体不会移动,而且当其他星体靠近时会产生一个吸收的效果。QAQ)

BlackHole

按f使窗口内的星体“冻结”即在很短时间内速度衰减到一个很小的值,本来是想做一个类似子弹时间的效果,但是子弹时间内可能还需要考虑动量守恒,于是就先做了一个冻结的简单效果。

freeze

整体结构(Optional)

-LICENSE
-|data
-|image
-README.MD
-galaxy.py
-celestial_objects.py
-requirements.txt

运行方式

python galaxy.py

taichihomework02's People

Contributors

miaoziemm avatar

Stargazers

 avatar Yaqin Cao avatar  avatar

Watchers

 avatar

taichihomework02's Issues

Thanks for your great homework:)

Well done! Thanks for your contribution and we cannot wait to see your next awesome work soon : )
同学你好,你的作业写得太棒啦!恭喜你获得太极图形精心定制的小礼品,请回复你的收货信息(地址+联系电话)到[email protected]。很快,你的太极周边就快马加鞭飞到你身边啦!(注:一定要确保信息完整准确哦~)
同时,如果你正在上太极图形课,也记得在论坛太极图形课作业区留下你的Github链接,让更多人欣赏到你的大作哦!https://forum.taichi.graphics/c/homework/14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.