diff --git a/bachelorproject.tex b/bachelorproject.tex index 420be53..07463a4 100644 --- a/bachelorproject.tex +++ b/bachelorproject.tex @@ -1,10 +1,34 @@ \documentclass{usiinfbachelorproject} +\usepackage[]{caption} +\usepackage[]{url} +\usepackage[]{subcaption} +\usepackage[]{float} + +\usepackage{tikz} +\usepackage{tkz-euclide} +\usetikzlibrary{external,shapes,through} + +\tikzexternalize[prefix=figures/] +\tikzstyle{none}=[] +\input{./tikzs/styles.tikzstyles} + +\pgfdeclarelayer{nodelayer} +\pgfdeclarelayer{edgelayer} +\pgfsetlayers{edgelayer,nodelayer,main} + +\graphicspath{{../figures/}{./figures/}} + + +\newcommand*{\figref}[1]{\figurename~\ref{#1}} + \captionsetup{labelfont={bf}} +% \newcommand{\diff}{\mathop{}\!\mathrm{d}} +\newcommand{\diff}{\mathop{}\!\mathrm{d}} \author{Arnaud Fauconnet} -\title{From flying balls to colliding polygons} +\title{From Flying Balls to Colliding Polygons} \subtitle{2D Physics Engine: Rigid Body Simulation} \versiondate{\today} @@ -13,6 +37,13 @@ Switzerland]{Prof.}{Antonio}{Carzaniga} \end{committee} +\newcommand{\inputtikz}[2][1]{ + \resizebox{#1 \textwidth}{!}{ + \tikzsetnextfilename{#2} + \input{../tikzs/#2.tikz} + } +} + \abstract { Physics engines are a fun and interesting way to learn about a lot of different subjects. First the theoretical concepts, such as the equations diff --git a/references.bib b/references.bib index 7af9030..739ce1c 100644 --- a/references.bib +++ b/references.bib @@ -1,17 +1,3 @@ -@misc{Cairo:Docs, - author = {Cairoglyphics}, - title = {Cairo Documentation}, - year = 2016, - url = {https://www.cairographics.org/documentation/}, - urldate = {2023-03-10} -} -@misc{Cairo:Tutorial, - author = {Cairoglyphics}, - title = {Cairo Tutorial}, - year = 2012, - url = {https://www.cairographics.org/tutorial/}, - urldate = {2023-03-10} -} @article{collisions, author = "Jiménez, Juan José and Segura, Rafael J. and Feito, Francisco R.", title = "Efficient collision detection between 2D polygons", @@ -27,10 +13,10 @@ journal={WWW page}, year={2001} } -@article{jovanoski2008gilbert, - title={The Gilbert--Johnson--Keerthi (GJK) Algorithm}, - author={Jovanoski, Davor}, - journal={Department of Computer Science, University of Salzburg}, - pages={13}, - year={2008} +@article{collision:resolution, + title = "Physics Part 3: Collision Response", + author = "Chris Hecker", + journal = "Game Developer Magazine", + year = 1997, + url = {http://www.chrishecker.com/images/e/e7/Gdmphys3.pdf}, }