首页 > 其他分享 >Game Physics

Game Physics

时间:2023-11-27 15:15:13浏览次数:36  
标签:phi frac Game ddot kappa Physics ds dot

Basic concepts form physics

Rigid Body Classification

Single particles and particles system are examples of discrete material. The standard notation is

\[Q_{total} = \sum\limits_{i=1}^{p}Q_{i} \]

Another type of body is referred to as a continuous material,consisting of infinitely many particles that lie in a bounded region of space,denoted \(R\).This rigid body as a continuum of mass.

Various physical quantities involve summations over all particles of mass in the region.

\[Q_{total} = \int_{R} Q dR \]

where \(R\) is the region, \(dR\) is an infinitesimal portion of the region, and \(Q\) is the physical quantity of interest and can be scalar- or vector-valued.

PlanarMotion in Cartesian Coordinates

First let us consider when the particle motion is constrained to be planar. In Cartesian coordinates, the position of the particle at time t is

\[r(t) = x(t)i + y(t)j \]

where \(i = (1,0)\) and \(j = (0,1)\).The velocity of the particle at time is

\[v(t) = \dot{r} = \dot{x}i + \dot{y}j \]

The acceleration of the particle at time t is

\[a(t) = \dot{v} = \ddot{r} = \ddot{x}i + \ddot{y}j \]

At each point on the curve of motion we can define a unit-length tangent vector by normalizing the velocity vector

\[T(t) = \frac{v}{|v|} = (cos(\phi(t)),sin(\phi(t))) \]

A unit-length normal vector

\[N(t) = (-sin(\phi(t)),cos(\phi(t))) \]

The coordinate system{ $ r(t ); T(t ),N(t ) $ } is called a moving frame.

\(v = |v|T = \dot{s}T\) \(a = \dot{v} = \frac{d}{dt}(\dot{s}T) = \ddot{s}T + \dot{s}\frac{dT}{dt} = \ddot{s}T + \ddot{s}^2\frac{dT}{ds}\)

\(\frac{dT}{ds} = \frac{d}{ds}(cos\phi,sin\phi) = \frac{d\phi}{ds}(-sin\phi,cos\phi) = \kappa N(s)\) where \(\kappa = \frac{d\phi}{ds}\) is the curvature ofht e curve at arc length s. The acceleration is therefore

\[a = \ddot{s}T + \kappa \dot{s}^2N \]

The component \(\ddot{s}T\) is called the tangential acceleration.The component \(\kappa\dot{s}^2N\) is called the normal acceleration or centripetal acceleration

\[\kappa = \frac{v \cdot a^{\bot}}{ |v|^3 } = \frac{\dot{x}\ddot{y} - \dot{y}\ddot{x}}{(\dot{x}^2 + \dot{y}^2)^{3/2}} \]

$\frac{dN}{ds} = \frac{d}{ds}(-sin\phi,cos\phi) = \frac{d\phi}{ds}(-cos\phi,-sin\phi) = - \kappa T $

\[ J=m\begin{bmatrix} \frac{dT}{ds} \\ \frac{dN}{ds} \end{bmatrix} = \begin{bmatrix} 0 & \kappa \\ -\kappa & 0 \end{bmatrix}\begin{bmatrix} T \\ N \end{bmatrix} \qquad \qquad \qquad (12.30)\]

标签:phi,frac,Game,ddot,kappa,Physics,ds,dot
From: https://www.cnblogs.com/ultramanX/p/17859384.html

相关文章

  • [Codeforces] CF1747C Swap Game
    游戏(game.cpp)—CF1747C—1200\(时间:1s\space|\space空间:250MB\)题面翻译Alice和Bob两个人在玩游戏。有一个长度为\(n\)的序列\(a\),Alice和Bob两人轮流完成一个操作,Alice先开始。每个人可以将数列的第一个数减\(1\),并将它与后面序列的一个数进行交换,如果一个......
  • 0xGame week4-WEB wp
    0xGame个人结语完结撒花!!!学到了很多很多,算是我这个WEB菜鸡过渡期的一个见证吧。0xGame虽然也没做出来几道(大嘘),但是一步步跟着复现也学了很多好玩的知识点和思路,希望下次能进化成WEBak哥hhhhhh~~~~来看最后一周,全是java框架,麻了。spring整体不难,hint把解题方法基本写脸上了,网上......
  • pygame播放视频并实现音视频同步
    一、前言在我接触pygame时最新的pygame已经不支持movie模块,这就导致在pygame播放视频变成一个问题,网上搜了下解决方案有两个:一是使用opencv播放视频,再结合pygame.mixer来播放音频二是使用moviepy播放视频,再结合pygame.mixer播放音频上述两个方案其实都是先将mp4的视频分离成“......
  • 俄罗斯方块、pygame的学习与实践
    俄罗斯方块、pygame的学习与实践目录俄罗斯方块、pygame的学习与实践俄罗斯方块tkinterPygame介绍null俄罗斯方块相信绝大对数同学都玩过,现在学习用Python实现。tkinter发现参考资料使用tkinter,所以先学习tkinter(此处省略10086条tkintker学习)Pygame介绍Pygame是一个用......
  • 【re】[HGAME 2023 week3]kunmusic -- .net程序逆向,z3库约束
    附件下载下来有三个东西。点开exe,发现是鸡哥判断应该是.net程序(.NET是一个免费的跨平台开源开发人员平台,用于生成许多不同类型的应用程序。凭借.NET,可以使用多种语言、编辑器和库来生成Web、移动应用、桌面应用、游戏和IoT应用),可以用dnspy打开,那个exe和json打开后都......
  • Solution - Partition Game
    Link.做vjudge的题有一种美丽的窒息的感觉。设\(f_{i,j}\)表示前\(i\)个选\(j\)段出来的最小代价,转移\(f_{i,j}=\min_{0\leqk<i}\{f_{k,j-1}+w_{k+1,i}\}\),\(w_{k+1,i}\)是\([k+1,i]\)这一段的代价,时间复杂度\(O(n^2k)\),然后就不会做了/l......
  • 【题解 CF1628D2】 Game on Sum
    GameonSum(HardVersion)题面翻译Alice和Bob正在玩一个游戏,游戏分为\(n\)个回合,Alice和Bob要轮流对一个数\(x\)进行操作,已知这个数初始值是\(0\)。具体每个回合的行动规则如下:Alice选择一个在区间\([0,k]\)之间的实数\(t\)。Bob可以选择让\(x\)变成\(......
  • CodeForces 1895E Infinite Card Game
    洛谷传送门CF传送门容易转化成经典的有向图博弈模型。每张牌建一个点,若\(x\)能打败\(y\)就连一条\(x\toy\)的边。入度为\(0\)的点为必败态,之后类似拓扑排序倒推即可。具体就是若存在边\(u\tov\),若\(u\)为必败态则\(v\)为必胜态并加入队列;若\(v\)的所有前驱......
  • CF467B Fedor and New Game
    前言传送门本题思维难度:橙。本题代码难度:橙或红。综合难度:橙。本人代码码量位居第二,但是呢,我的空格多,所以,还不来看一下?题意根据题目,若两人一人有$j$,一人没$j$,则异或后,第$j$位为$1$。那么,题目转化为:已知有$m+1$个数,求出满足$a_i$异或$a_{m+1}$结果的$1$的......
  • 开发知识点-Pygame
    PygamePygame最小开发框架与最小游戏游戏开发入门单元开篇Pygame简介安装游戏开发入门语言开发工具的选择Pygame最小开发框架与最小游戏游戏开发入门单元开篇Pygame简介安装游戏开发入门语言开发工具的选择......