利用加速度计

加速度计实际上是把一个小球球放在一个盒子里, 然后检测盒子内侧表面受力。

于是比较难获得这个盒子本身的受力情况。

然后把重力加速度弄到了Physics2D里面, 神奇效果。

发表评论

注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)

本文链接:https://twd2.me/archives/5773QrCode