Skip to content
ℕ𝔸𝕊𝔸™ℕ𝕒𝕤𝕒𝕣𝕖™𝕊𝕡𝕒𝕔𝕖𝕏™ https://nasa.re/

Nasare™🚀

フレッシュ スペース & テクノロジー NEWS📢

  • About 𝒩𝒶𝓈𝒶𝓇𝑒™
  • SMART Tools
  • SMART AI
    • Kubeshark PCAP Export/Import
    • Coaching engineering managers to employ on organizational issues
    • Zelda: Hyperlink’s Awakening game engine documentation (2021)
    • Commercial Resupply Services-CRS
  • Show HN
    • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
    • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
    • 主な BGP 増加をレジデンス Windows デスクトップに追加する
    • ガジェットの複雑さが増し、余分な IP の再利用が促進される
    • 新しい GitHub CLI 拡張インストゥルメント
    • Kubernetes を 7,500 ノードにスケーリング (2021 年)
    • Wander アプリ用の軽量なオンザフリット構成ライブラリ
    • Ask HN
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Level to HN: A corpulent game of snake encoded in a url
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Show HN
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Android phones will at the moment obtain iPhone-love SOS satellite texting
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Level to HN: A corpulent game of snake encoded in a url
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Tag HN: Using Key-Value Retail outlets in Serverless Codehooks.io Applications
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Level to HN: A corpulent game of snake encoded in a url
    • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
    • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Speak HN: What sub $200 product improved HN readers’ 2022
    • Level to HN: An initiate source tool to generate Jet Engine compressors
    • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
    • Insist HN: Ov – characteristic smartly off terminal pager
    • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
    • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
    • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
    • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
  • A Computer virus and a Dilemma
    • OCIS – OwnCloud Countless Scale
    • A Princeton student built an app which is ready to detect if ChatGPT wrote an essay
    • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
    • Adobe’s Command material analysis can be using photos/videos to narrate AI w/o consent
    • Ultralearning a.k.a. how I learned to code
    • Automatic1111 is assist on GitHub after taking away Embedding Links
    • Where Your Sides Came From
    • What Is a Pig Butchering Rip-off?
    • Submit-processing is ruining iPhone photos
    • Clos Topologies and Centralized Retain a watch on in Google’s Datacenter Community
    • Miller Engineering DS-1 House Planetarium
    • Gimel Studio: Non-harmful, 2D image editor
  • Technology
    • Miller Engineering DS-1 House Planetarium
    • Apple Doctors: to construct it as a file it is advisable to electronic mail it to your self
    • The Air India passenger who urinated on a girl has been fired by Wells Fargo
    • The Filesystem Hierarchy Usual Comes to Guix Containers
    • Sooner than it sued Google for copying from Java, Oracle changed into as soon as copying IBM’s SQL (2020)
    • The i3-gaps mission has been merged with i3
    • Making an Alphorn from Scratch
    • Apple: Braille Individual Guides
    • MotherDuck Is a Original Thought
    • The class of CGI and simple make
    • Like a mercurial tour of DragonFly BSD 6.4?
    • computer science
    • AI
    • Artificial intelligence
    • Technology
    • Ai
    • Apple
    • digital
  • TOP HN
    • anti-Mastodon
    • TOP HN
      • Show HN
      • Ask HN
      • coding
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 新しい GitHub CLI 拡張インストゥルメント
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • Artificial intelligence
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • Technology
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Level to HN: A corpulent game of snake encoded in a url
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • 新しい GitHub CLI 拡張インストゥルメント
      • ロンドンで*ダウン*を継続的に見つめる: Pavement Oddities
      • 報酬 HN: C の 30 行でスピンロック
      • FAA の NOTAM とは何ですか? 航空専門家が機械の仕組みを説明
      • ナノGPT
      • 1 ビット LCD のグレースケール (2022)
      • The Muse (YC W12) は FP&A のシニア ディレクターを採用しています
      • Zen (YC S21) はグロース エンジニアを採用しています
      • Tall Inquire of (YC W21) が B2B 回顧録の幹部を採用
      • Actiondesk (YC S19) は、プロダクト ドレスメーカーを採用しています (4-6 か月の契約)
      • Oven (YC S19) は、Bun を作成するために C/C++ または Zig エンジニアを採用しています。
      • WInd3x, the iPod Bootrom exploit 10 years too unhurried
      • Sign HN: FASTA recordsdata を操作するための FUSE モジュール
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • Wage Development Continues to Gradual in the UK and Euro House
      • Stage Supervisor for the unimpressed: 1 Getting started
      • First public free up of Pushup: a brand unique compiler for making net apps in Trip
      • Fixing Cart-Pole Swingup with a Hierarchical Controller
      • Flight Testing the Touchdown Radar for Mars Science Laboratory 2011-06-21T17:36:36Z
      • Flightcontrol (YC W22) is hiring first Developer Recommend
      • Flying boats and other tech for cleaner shipping
      • Four Finalist Touchdown Location Candidates for Mars Science Laboratory 2008-11-19T16:21:01Z
      • France’s prized nuclear sector stalled in Europe’s hour of want
      • French startup unveils new residential thermo-acoustic warmth pump
      • FTC Cracks Down on Firms That Impose Contaminated Noncompete Restrictions
      • FTX’s Aged Prime Lawyer Aided US Authorities in Bankman-Fried Case
      • FY18 NASA lėšų šnypštimas 2017-05-22T00:00:00Z
      • G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
      • Gail.com FAQ
      • Gemini-Titan (GT)-6 – Gemini 6 of 7 – 지역 사진 – 외부 지역 1965-12-15T00:00:00Z
      • Geoffrey Hinton Publishes Original Deep Learning Algorithm
      • Germany warns: AI fingers flee already underway (2021)
      • Gimel Studio: Non-harmful, 2D image editor
      • GitHub Availability File
      • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
      • Google needs RISC-V to be a “tier-1” Android architecture
      • Google researcher, lengthy out of math, cracks devilish dispute about gadgets
      • Google start sourced CDC File Transfer from the ashes of Stadia
      • GRC-2003-C-02097 2004-05-01T00:00:00Z
      • GRC-2013-C-05246 2009-11-26T00:00:00Z
      • Hello world!
      • Highlights of Science Launching on SpaceX CRS-15 2018-06-24T00:00:00Z
      • Hilf Al-Fudul
      • HiOperator (YC S16) Is Hiring VP of Engineering
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • How kind I blueprint a pair of buttocks?
      • How will the haj switch as international temperatures upward thrust?
      • Human gene linked to bigger brains turned into as soon as born from apparently pointless DNA
      • Hundreds of scientists publish a paper every 5 days
      • In Favor of Friction and Flexibility
      • Indicate HN: Klotho – Change into straightforward code into cloud native code
      • Indoor farming isn’t exact for the smartly off
      • Iranian assault drone came across to have parts from more than a dozen US companies
      • Israeli researcher experiences leak of 235M Twitter-linked e-mail addresses
      • Jam Stations in Low Earth Orbit
      • Jazz Is Freedom
      • JPL-20171102-TECHf-0001-ドローントリップ 人間vs機械 2017-11-17T00:00:00Z
      • JPL에서 NASA의 MSI 콘도미니엄 액셀러레이터 2022-08-25T00:00:00Z
      • JPSO extinct facial recognition abilities to arrest a man. The tech modified into once defective
      • jsc2017e136097 – 12 月 4 日,俄罗斯联邦地区公司 (Roscosmos) 的远征 54-55 号机组人员 Anton Shkaplerov 在俄罗斯 Principal person City 的加加林宇航员训练中心上向整洁的祝福者挥手致意,当时他登上了前往附近的 Chkalovsky Ai 的公共汽车2017-12-04T00:00:00Z
      • Kemble’s Cascade of Stars
      • Kepler-90 マシン (アーティストの考え) 2017-12-14T00:00:00Z
      • Koichi Wakata SpaceX 코칭 2022-06-27T00:00:00Z
      • KSC and Proud to Be Heart-Wide Diversity Tournament 2019-08-20T00:00:00Z
      • KSC ir „Proud to Be Center“ įvairovės turnyras 2019-08-20T00:00:00Z
      • AI
      • Artificial intelligence
      • Auto-Generate
      • anti-Mastodon
      • Awesome
      • BioSentinel
      • CATEGORIES
      • DC
      • Dione
      • Diversity
      • drone racing
      • drones
      • Dulles
      • education
      • Event
      • filmstock
      • Goddard
      • AI
      • Ask HN
      • autonomous
      • coding
      • computer science
      • Clusters
      • Artificial intelligence
        • Ai
        • Apple
        • Tesla
        • digital
        • MESSENGER
        • Device
        • Charts
        • change
        • Shows
        • fraud
        • Former
        • fucking
        • purge
        • Works
        • entering
        • Databases
        • Review
        • Strangely
        • Instinct
        • staff
        • Salesforce
        • intern
        • Involuntary
        • promise
        • Twilio’s
        • nisv live
        • attack
        • Iranian
        • France’s
        • prized
        • infrastructure
        • Debian-based
        • nisv s02 ep03
        • siduction
        • Awesome
        • Calculate
        • Beautiful
        • Linux
        • Start
        • dollar
        • Messier
        • Daughters
        • ‘Breakthrough’
        • obesity
        • Al-Fudul
        • sixty years
        • PyTorch
        • discloses
        • Ancient
        • Stone
        • Popup
        • design
        • public
        • expanding
        • cloud
        • forest
        • startup
        • French
        • batteries
        • fleas
        • spotted
        • Petals
        • language
        • Habitual
        • checking
        • GitHub
        • Availability
        • layers
        • inconsistencies
        • Affair
        • Quasi-War
        • Sergey
        • Irate
        • bestseller
        • necessarily
        • Scientists
        • Titan
        • twitch
        • FGS/NIRISS – Fine Guidance Sensor/Near InfraRed Imager and Slitless Spectrograph
        • infrared
        • ISIM – Integrated Science Instrument Module
        • JHU – Johns Hopkins University
        • JWST – James Webb Space Telescope
        • JWST – James Webb Space Telescope
        • absolute zero
        • Big Bang
        • Peace
        • Studio
        • Making
        • project
        • -gaps
        • warns
        • Germany
        • Braille
        • MotherDuck
        • prototype
        • Challenges
        • Infinite
        • OwnCloud
        • Novel
        • Before
        • copying
        • California
        • getting
        • States
        • Criminal
        • Brother
        • Released
        • Method
        • owners
        • ‘richsession’
        • email
        • Elements
        • Where
        • passenger
        • Hierarchy
        • Filesystem
        • economic
        • Crew Dragon
        • Bridenstine
        • Scientific
        • Heaviosity
        • Patterns
        • Unexpected
        • minimalist
        • Ecode
        • Alpha
        • Wolfram
        • Tailwind
        • HiOperator
        • Klotho
        • TEAMS
        • ROBOTICS
        • Antelope
        • Sponsors
        • Ellen Gertsen
        • Transform
        • Flightcontrol
        • subscriptions
        • Internet
        • Theory-building
        • you’re
        • looking
        • Transfer
        • error’
        • Tails
        • migrate
        • Building
        • Bitmovin
        • Remote
        • PhotoRoom
        • Company
        • Taking
        • Ribbon
        • BibDesk
        • Android
        • profilers
        • phones
        • modern
        • Mastercard
        • private
        • We’ve
        • reportedly
        • Microsoft
        • Artsy
        • trades
        • skilled
        • Polygon
        • Flying
        • Princeton
        • Codemods
        • Coaching
        • UK’s
        • popping
        • sourced
        • Wikipedia
        • admin
        • Indoor
        • quick
        • Mysterious
        • Spotify
        • Fancy
        • Spotify
        • Weird
        • mail-order
        • Recipients
        • computer
        • optics
        • partnership
        • commercial
        • telemetry
        • Crisis
        • billionaire
        • Party
        • Onelab
        • Faster
        • general
        • Adobe’s
        • database
        • FinanceDatabase
        • Numerical
        • Freedom
        • concrete
        • Stacks
        • computer science
        • NASA
    • Show HN
    • Ask HN
    • Technology
    • computer science
    • coding
    • Clusters
    • AI
    • drones
    • autonomous
    • Auto-Generate
    • Ask HN
    • Show HN
    • The SMART Science™
    • google
  • CRYPTO
    • Blockchain
    • farming
    • Billionaires
    • FTX’s
    • FinanceDatabase: A database of 300.000 symbols (ETFs, Currencies, Crypto)
  • Artificial intelligence
  • Toggle search form
  • John Carmack による C++ での意図的なプログラミング (2018)
    John Carmack による C++ での意図的なプログラミング (2018) Artificial intelligence
  • AmazonがNFTマーケットプレイスを立ち上げる
    AmazonがNFTマーケットプレイスを立ち上げる Amazon
  • 長期目標を達成するために PagerDuty の運用回復力を向上させる
    長期目標を達成するために PagerDuty の運用回復力を向上させる anti-Mastodon
  • 見当違いのメディア: ビル クリントンの「ボクサーまたはブリーフ」MTV の瞬間を見つける
    見当違いのメディア: ビル クリントンの「ボクサーまたはブリーフ」MTV の瞬間を見つける anti-Mastodon
  • オラクルは Java 準拠のユーザーをターゲットにしています
    オラクルは Java 準拠のユーザーをターゲットにしています anti-Mastodon
  • PlanetScale API および OAuth 機能
    PlanetScale API および OAuth 機能 anti-Mastodon
  • ゴダード at 60 2019-04-29T00:00:00Z
    ゴダード at 60 2019-04-29T00:00:00Z Ask HN
  • SMS 詐欺のしくみとそれに対抗するための対策
    SMS 詐欺のしくみとそれに対抗するための対策 Artificial intelligence
  • KSC-05pd-0161 2005-01-19T00:00:00Z
    KSC-05pd-0161 2005-01-19T00:00:00Z Ask HN
  • Agility の最新の Digit Robot が最初の仕事に備える
    Agility の最新の Digit Robot が最初の仕事に備える Agility’s
  • 伝説のハッカースペース L0pht を生み出した 90 年代初頭のテック シーン
    伝説のハッカースペース L0pht を生み出した 90 年代初頭のテック シーン Clusters
  • NASA 60th_SEAL_BLACK_72DPI 2018-05-14T00:00:00Z
    NASA 60th_SEAL_BLACK_72DPI 2018-05-14 Ask HN
  • इस छवि को NOAA DSCOVR अंतरिक्ष यान पर NASA के EPIC कैमरे द्वारा संशोधित किया गया है 2022-12-31 00:41:06
    इस छवि को NOAA DSCOVR अंतरिक्ष यान पर NASA के EPIC कैमरे द्वारा संशोधित किया गया है 2022-12-31 00:41:06 Ask HN
  • Recordsdata Classification: Python はデータクラスのないクラスの必要性を平和的に備えていますか?
    Recordsdata Classification: Python はデータクラスのないクラスの必要性を平和的に備えていますか? Classification
  • 航空とアパートのレポート_69_71-75_77-セブンティ ナイン 2021-02-01T00:00:00Z
    航空とアパートのレポート_69_71-75_77-セブンティ ナイン 2021-02-01T00:00:00Z Aeronautics
Vlang でソフトボディ ダイナミクスをシミュレートする

Vlang でソフトボディ ダイナミクスをシミュレートする

Posted on February 20, 2023 By 📢 Github™

久しぶりのブログ更新です。 それ以来、私は V で注目に値するほど良くなり、それが構築用の唯一のプログラミング言語に変化するのを見てきました.NodeJS から Vweb へのリンク短縮サービスからバックエンドを書き直して改善するレベルまで. 作成者は、私のプロジェクトの賢明な 1 つについてさえツイートしました!

ありがとうございます! Twitterリンク

私はそれをステップアップして取るよりも早く小さなシミュレーションを完了しましたソフトボディシミュレーションについて。 私は 加圧スプリング マス モデルを実行しました。バルーン。 内側に空気が入った変形可能な外側で、ボールを加圧して球状に保ちます。 これらの部品をシミュレートするには、2 つの同一の時代遅れの物理法則を採用する必要があります。 これらは、フックの法則と完全ガソリンの法則です。 私はそれらのファンダメンタルズをスライドするつもりはありません.理想的なスキームは私のシミュレーションで利用されており、アルゴリズムはそれを丸めています.

より早くフックの法則に集中できるようになり、バネと頂点のデータ構造を覆い隠すことができました.

構造体 バーテックス { mut:

ネットサイト Vec = Vec {0, 0} // XとYのネットサイト

速度 Vec // 速度ガジェット/秒 力 Vec // ガジェットの強制

質量 f64 = 1.0

// 質量、デフォルトは 1 単位 }

頂点量のない非常に小さなレベルですが、質量が含まれています。 それはシミュレーションの最高の部分であり、非常に多くのことを意味するために、公平で静かであることさえあります。 それを住居内の単一のネットサイトとして逸話として取り上げる、それが私たちのシミュレーションの段階です.

 struct 春 {   mut:  あ & バーテックス //  への参照

b &バーテックス / / 2 つの拘束頂点 長さ f64 // 余暇の長さ こわばり f64 //交流への抵抗 ダンピング f64 // エネルギー不足、減衰 }

ばねは、フックの法則によって支配されるばねの力によって集合的に 2 つの頂点を拘束します。 これには、静止長、剛性 (または交換に対する抵抗)、および減衰力が含まれます。 スプリングは、必要に応じて 2 つのエンドポイントに力を永続的に適用して、それらを静止長にします

構造体 ベク{ mut ): x f64 や f64 } // 2D ベクトル, passe to // 指示または位置を示す

フックの法則は物理法則であり、バネを伸ばしたり縮めたりする主な力は直線的に変化するというものです。その距離に感心して – ウィキペディア

緑=安静時の長さ、深紅色=長さを超えて伸ばされた状態.

長さの差 :=vertex_A.net サイト.distance_to

(vertex_B.net サイト) – spring.length // エンドポイントの距離とスプリングの違い静止長 力 :=長さの差 * ばね剛性 // 両方のエンドポイントに使用される最大の力 (スカラー インプリント) direction_to_A_from_B := (vertex_A.net サイト – vertex_B.net サイト).normalize() direction_to_B_from_A := (vertex_B.net サイト – vertex_A.net サイト).正規化() // 長さ 1 のベクトル velocity_difference ):= vertex_A.velocity - vertex_B.velocity base_dot := direction_to_A_from_B. dot(velocity_difference) 力 +=ドット * spring.damping // 内積から減衰力を計算し、それを次の力に追加します 頂点A.力 +=direction_to_B_from_A * 力 vertex_B.force +=direction_to_A_from_B * 力 // 各エンドポイントの最終ばね力

ファーストプライスガソリン法は、同じ時代遅れのガソリン方程式と呼ばれ続けており、仮想のファーストプライスの開示方程式です。ガソリン。 多くの場合、多くの障壁がありますが、これは多くのガスの習性を見事に近似したものです。 – ウィキペディア

気体の流体は応力と量が本質的に結びついており、これをガソリン第一価格法則と呼んでいます.

  • P=応力

V=ボリューム

  • n=物質の量 (モル)
  • R=賢く好きなガソリン固定

  • T=絶対温度 (ケルビン)
  • オブジェクトの量が減るので、ストレスが増えます.

    この通知のためにお持ち帰りすることにしました


    nRT 方程式からそれをさらに単純化し、再構築できるようにします。 これは、アルゴリズム内で単一の固定として表されます。

    const

    nrt =1.0 * 8.3144621 * 293.15 // 1.0 モルの物質、293.15 ケルビン (室温、20°C)

    ストレスシステム(下)では、おそらくこれを最終的な式の最初の価格のガソリン法則と混合することもできます.

    P=F/A

    上記のシステムを採用してください場合によっては、理想的な形状のセットアップとボリュームから地面に作用する力を計算することもできます.

      F=A nRT / V

      これが私のシミュレーションの基礎です

      マイルは 2D シミュレーションです。オブジェクトの量をその住居に置き換え、顔の住居を長さに置き換えます。 ただし、システムはほとんど変更されていません.

      まず、すべてのスプリングをループし、2 つの頂点を取得してそれらの間の長さを計算し、

      を掛けます。 nRT 固定。 右 次に、エッジの同一の古いベクトルによって外側に押し出す力を発生させるために、居住しているソフトボディの合計で割った値です。const nrt =1.0 * 8.3144621 * 293.15 )shape_area := ソフトボディ.住居() for i, mut 春 in softbody.sp リング { 長さ :=spring.vertex_A.net サイト.距離 (spring.vertex_B.net サイト) force_float :=(長さ * nrt) / 形状領域 // 同一の古いベクトルを計算します // このフェーズはかなり長引くので省略しました spring.vertex_A.force +=spring_normal_vector * svec(force_float) spring.vertex_B.force += spring_normal_vector * svec(force_float) } // エッジごとに応力を計算

      次のように達成された任意の 2D ポリゴン上の合計住居を計算します。 基本的に、すべての頂点の球状の非友好的な積を合計します。 特筆すべきは、三角測量より賢い

      fn (c SoftBodyCircle) 住居

      () f64 { mut 住居 := 0.0

      ために 私 in 0..c.vertices.len { i_next := (i

      +

      1) % c.vertices.len 住居 +=c.頂点.net site.y * c.vertices[i_next].net site.x – c.頂点 .net site.x * c.vertices[i_next].net site.y } 戻る 住居 * –0.5 }

      n=0.4 と n=3.5 それぞれ

      このボールは弾けませんが、物質の量を増やすと円周に大きな力がかかります。 応力ベクトルは深紅色のひずみで視覚化され、ばねの応力は緑 (余暇の長さ) から赤 (伸ばされた長さ) にスライドします。

      この係数の位置を 0.4 にすると、余分なタックルを感じます。半分膨らんだ空気の袋で、時間の経過とともにかかるストレスははるかに少なくなりますが、最初のタッチダウンの期間中は大きな力がかかりました。 最初の転倒の間、n=3.5 の場合、どのように力が緊張し、リラックスした体格がどのように拡大するかを観察してください。 量が増えれば力が減り、逆もまた然りなのでさすがに! 重力は下向きの一定の加速度であり、毎秒 2 乗あたり -9.8 メートルです。 ニュートンの第二法則は、これのために一度作られたものに変わりました.

      const

      重力 = Vec{0,–

      9.8} fn (mut v 頂点) 重力() { v.force += 重力 * v.mass }


      サークル。 ネットサイト以外の至高の特徴とは? 半径です。 では、そこにあるさまざまなエントリは何ですか? 悲しいことに、コンピューターは円に完全に近似することができます。私たちは、コンピューターを焼き尽くすことなく完全にフェッチすることができます.

      samples

      変数は、近似円に含まれる頂点の数の概要を示します。 ソフトボディを再現するための種類のコンストラクタなので、これを使用します.

      構造体

      ProceduralCircle { mut: ネットサイト Vec 半径 )f64 サンプル int }

      ある角度から円の角度をサンプリングすることは、次の場合には慎重に行います。 三角法の期間中、注意を払っていたことがわかります。 単純に単位円を例にとると

      cos θ=x, sin θ=y

      fn (c ProceduralCircle) sample_point (インデックス int)ベク{ 角度 := index /

      c.samples * 2.0 * math.pi // ラジアンに変換 // 検索しているレベルのインデックスから角度を取得しますadmiを取得する へのセッション ) 戻る ベク{ c.radius * 数学。 cos(角度), c.radius * math.sin(角度) } + c.net サイト }

      はサンプルレベル機能の採用円のすべての位置を選択する場合は、偶然にも (いくつかの追加の値を使用して)、それらを頂点に変換し、それぞれをバネで結合します.

      ソフトボディ = ProceduralCircle { 半径: 10, ネットサイト:

      vec(0,20),

      サンプル: 20 }.make_real

      ( 10, 200.0, 1.0 ) //質量、剛性、減衰

      make_real() プロシージャル サークルをシミュレートされたソフトボディに作り直す機能はかなり長くなりますが、理想的なデータ構造は 1 つのデータ構造から他のすべてのデータ構造に変換され、あまり洗練されていません.

      衝突のいくつかの構成を生成するために得られる可能性が高いものがあるので、最も簡単なものを慎重に選択します。 度と無限に延長された線の間の衝突。 これを試すには、最初にレベルがラインのどの側面にあるのかを知りたいと思います。衝突している側面が何マイルもある場合は、ラインの最も近いレベルに転送し、その速度を覚えておいてください。

      (これが、混合ステップの後に達成される理由です).

       struct ライン {   mut:  ネットサイトVec

      ) // ラインに触れるレベル コース Vec // ラインのコース で行きます ブール // 衝突アスペクト )}

      集中しない衝突レベルからライン上で最も近いレベルを取得する、2 番目のステップと適度に同一であるため、アスペクト チェック。

      fn (l Line ) get_closest(vec Vec)Vec { v :=vec – l.net サイト d :=v.dot(l.course) )return l.net サイト + l.コース *d }

      ライン上で最も近いレベルを検索するには、strains net サイトにコースを取得し、内積を計算して、ラインに沿った射影ベクトル長を取得します。 次に、その長さにストレイン コースと正味のサイトを掛けた値を使用して、線上にある居住地の程度を計算します。 これは、住居内の任意のレベルが、それ自体、ひずみネット サイト、およびライン上の最も近いレベルの間に正しい角度の三角形を作るため、常に機能します。


      統合ステップは、忠実な物理シミュレーション。 これは、フレームのライフサイクル、環境速度、および位置の採用を通じて収集された力を適用します。

      速度がネットサイトの置換を表し、デルタ時間がネットサイトの置換を表す方法に簡単に取り組みます。時間。 フレームレートが毎秒60フレームに決まっているからです。 シミュレーションは、おそらく 1 秒あたり 60 ケース計算される可能性が高く、これは、1/60 秒の境界の持続時間についてシミュレートする必要があることを意味します.

      オイラー積分にもかかわらずはたくさんの選択肢の中で最も不正確ですが、この採用には最適です

      const デルタ =

      1.0/ fps // fps=60 fn (mut v バーテックス) ミックス() { v.速度+= v.force * デルタ / v.質量 v.net サイト +=v.速度 * デルタ }

      私は、シミュレーションに触れている輝かしい量のトピックについて詳しく説明しました。それは、あなたが考えたことの小さな要約です.

      ソフトボディ. 準備() // 省略、物理物理学 + デバッグのリセット フォースにパス

      ソフトボディ.simulate() // 内部力をシミュレートします // – ばね力 // – 応力ダイナミクス // – 重力 ソフトボディ. )mix() // オイラー積分 // シミュレーションに混ぜて、 ) // – 速度 // – ネットサイト softbody.line_collide (ライン) // 線 との衝突をテストして対処する ソフトボディ。 与える() // ベール オン ベール/ターミナル

        準備()

          まさにここで、すべての頂点のすべての力ベクトルをリセットします。 ここにあるのは、力のベクトルがフレームの寿命にわたって収集され、体格に影響を与えるあらゆる小さなものが追加されているためです.



        1. シミュレート()

  • 重力が最初にシミュレートされ、次にスプリングがシミュレートされます力と消火応力ダイナミクス内では、発見は問題ではありません!
  • シミュレーションの各パーツは、すべての頂点 (重力) またはすべてのスプリング/エッジ (スプリングの力と応力) に使用される独自の機能です。
  • ミックス()
    1. 当分の間蓄積された力が作用し、それぞれの速度が変化しますおよびすべてのタイムステップ/フレーム

  • トレイルが決定され、すべての頂点のネット サイトが変更されます。 このステップの後、力ベクトルは使用されません



    line_collide ()

  • 線にぶつかってぶつかる。 株はネットサイトとコースとして表現され、無限に広がっています.
    1. 与える()

      1. 端末内のシーンのイラストを叫びます。 ターミナルにはエビの解像度があり、非常に注目に値するものは、おそらくここに表示される可能性があります. 小数位は整数に丸められ、きらめくピクセルは網掛けされます。
  • 端末は、シミュレーションに明確な座標系を使用します。 シミュレーションでは、ベールの中心に原点が保持されますが、端末座標は頭の左側に原点が得られます。 これは逸話に変換する必要があります.


    0.4、1.0、および3.5 それぞれ

    2 つのひずみが斜めに衝突します。

    それは、最低限の説明としてあなたが期待していた壮観なフェッチではありませんが、それでも私があなたに何かを教えてくれたことを願っています. 実際、これがすべてを終わらせる私の目的です。 私はこのプロジェクトに参加しましたが、このレベルの物理シミュレーションについてはそれほど注目に値するものではありませんが、2 日と多くのタブの後、それは達成されることさえあります。 これは実際にはすべての小さなことに当てはまります。 大学の理想は1回おきに取り上げられたので、私が取り組むほど注目に値する時間はありませんでした. 後で追加のシミュレーションに取り組みたいと思っていますが、流体シミュレーションに取り組みます。 これが実はストレスフリーな企画に変わったのです! 肉感オファーコード

    𝚆𝚊𝚝𝚌𝚑 𝙽𝙾𝚆 📺

    Artificial intelligence, Ask HN, Show HN, Simulating, Softbody, Technology, TOP HN Tags:Show NH:, Simulating, Softbody

    Post navigation

    Previous Post: 南北戦争の7トンの金を1日で没収したとして、鉄鋼探知機がFBIを訴える
    Next Post: HN のデモンストレーション: Pandas データフレームを Tableau に似た UI に変換して視覚的な診断を行う

    Related Posts

    • ヤマハ NS10 エピック (2008)
      ヤマハ NS10 エピック (2008) Artificial intelligence
    • 表示 HN: boxxy – Linux プログラムがシンボリック リンクなしでレコードデータを作成する場所を監視することを優先
      表示 HN: boxxy – Linux プログラムがシンボリック リンクなしでレコードデータを作成する場所を監視することを優先 Artificial intelligence
    • Fulcrum: 親指の機能をさらに備えたエルゴメカニカル スプリット キーボード
      Fulcrum: 親指の機能をさらに備えたエルゴメカニカル スプリット キーボード Artificial intelligence
    • Digital DOM を使用しない場合の反応性
      Digital DOM を使用しない場合の反応性 Artificial intelligence
    • Paving the Avenue to Vulkan on Asahi Linux
      Paving the Avenue to Vulkan on Asahi Linux Artificial intelligence
    • 偽情報を擁護した後、Comcast は FCC ブロードバンド方式のもう 1 つの誤りを認める
      偽情報を擁護した後、Comcast は FCC ブロードバンド方式のもう 1 つの誤りを認める After
    • Show HN: Gitgpt – Pure Language Git
      Show HN: Gitgpt – Pure Language Git Artificial intelligence
    • 世界で最も安い電子書店: The Temple of the Muses
      世界で最も安い電子書店: The Temple of the Muses Artificial intelligence
    • Curl が 25 歳になりました GitHub 誕生日のお祝い
      Curl が 25 歳になりました GitHub 誕生日のお祝い -Turns
    • HN のデモンストレーション: Supabase Clippy – Supabase Doctors 向け ChatGPT
      HN のデモンストレーション: Supabase Clippy – Supabase Doctors 向け ChatGPT Artificial intelligence

    Recent Posts

    • ChatGPT は 10 年以内にプログラマーを置き換えます
    • 私のswiftly 6502コードジェネレーターの説明
    • 3 月 20 日の ChatGPT 停止: これが不満の原因です
    • Indicate HN: 暗号化された Git によってキーと構成を同期する
    • AirPods は購入しないでください。通常は AirTags です。

    Recent Comments

    1. robga on Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
    2. Loic on 行方不明の放射性タブレットは、必死の捜索の後、WA奥地で偶然見つけました
    3. minihat on メタは、標準的な VR e スポーツ Echo Area をシャットダウンします
    4. dafelst on フレーム ポインターの巻き戻しによる Move 実行トレーサーのオーバーヘッドの削減
    5. cloudking on GraphGPT: 構造化されていないテキストの肯定的な素材からのレコードデータ グラフの外挿
    • iOS で Apple のスペース プライバシーをバイパスして、このブラジルの重要なアプリになりましたか?
      iOS で Apple のスペース プライバシーをバイパスして、このブラジルの重要なアプリになりましたか? anti-Mastodon
    • Royal Suited Society: 2024 年からすべてのジャーナルがアクセスを開始
      Royal Suited Society: 2024 年からすべてのジャーナルがアクセスを開始 Julian Assange
    • この VC はゆっくりとジョブを自動化しています
      この VC はゆっくりとジョブを自動化しています anti-Mastodon
    • KSC-04pd-2621 2004-12-15T00:00:00Z
      KSC-04pd-2621 2004-12-15T00:00:00Z Ask HN
    • Know Your Assumptions – ビットコインおよびエルゴ プロトコルでばらばらになっているセキュリティの前提について
      Know Your Assumptions – ビットコインおよびエルゴ プロトコルでばらばらになっているセキュリティの前提について anti-Mastodon
    • 単一ファイル Elixir スクリプト
      単一ファイル Elixir スクリプト Artificial intelligence
    • Ciro (YC S22) 創業支援エンドエンジニアを採用し、SMB検索エンジンを発信
      Ciro (YC S22) 創業支援エンドエンジニアを採用し、SMB検索エンジンを発信 founding
    • Elektročas HH3 – 地球上で最も正確な振り子時計
      Elektročas HH3 – 地球上で最も正確な振り子時計 accurate
    MAILANON
    2100 MAIL
    SEO
    METAVERSE
    BioLINK
    CRYPTO MINING
    CASINO
    DEFI-TRACKER
    StartApp Network
    RAVES-MONSTER-GAME
    RAVES EXCHANGE
    RAVES NFT
    KVANTA TV

    Copyright © 2023 Nasare™🚀.

    Powered by PressBook News Dark theme