\hypertarget{group__EPhysics__World}{}\doxysection{EPhysics World}
\label{group__EPhysics__World}\index{EPhysics World@{EPhysics World}}


A world is required to simulate physics between bodies.  


\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \+\_\+\+EPhysics\+\_\+\+World \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}}
\begin{DoxyCompactList}\small\item\em World handle, most basic type of EPhysics. \end{DoxyCompactList}\item 
typedef enum \mbox{\hyperlink{group__EPhysics__World_ga0b0aff31f415be24679d4ab703674619}{\+\_\+\+EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}} \mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}
\begin{DoxyCompactList}\small\item\em Identifier of callbacks to be set for EPhysics worlds. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__EPhysics__World_gab4ea0144b549cfb4c98359f166abfbd6}\label{group__EPhysics__World_gab4ea0144b549cfb4c98359f166abfbd6}} 
typedef enum \mbox{\hyperlink{group__EPhysics__World_ga5723626f948a9e8951324c4ffcbfa3c3}{\+\_\+\+EPhysics\+\_\+\+World\+\_\+\+Constraint\+\_\+\+Solver\+\_\+\+Mode}} {\bfseries EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode}
\item 
typedef void($\ast$ \mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}}) (void $\ast$data, \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, void $\ast$event\+\_\+info)
\begin{DoxyCompactList}\small\item\em EPhysics world event callback function signature. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group__EPhysics__World_ga0b0aff31f415be24679d4ab703674619}{\+\_\+\+EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}} \{ \newline
\mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ae42b35c975ed4847c43373b2c5abf2b8}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+DEL}}
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ac553fa1d8ca19d2d17fe4cb7801c52ba}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+STOPPED}}
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619aa5f6adbd98bc6599221d12ecfeb1cbc6}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+CAMERA\+\_\+\+MOVED}}
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a8fae2bbe9fcb164d9848fbd929462fbb}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+UPDATE}}
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a022f6c857a8cea0a1adb2bbe5c6822fa}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+LAST}}
 \}
\item 
enum \mbox{\hyperlink{group__EPhysics__World_ga5723626f948a9e8951324c4ffcbfa3c3}{\+\_\+\+EPhysics\+\_\+\+World\+\_\+\+Constraint\+\_\+\+Solver\+\_\+\+Mode}} \{ \newline
\mbox{\hyperlink{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ac05bb8f778c529de7f2d209708ec55b7}{EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+RANDMIZE\+\_\+\+ORDER}} = 1
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3afd99d0a859514f82a1930eb49b55f754}{EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+USE\+\_\+\+WARMSTARTING}} = 4
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3a81c043ce000eec701e73d383a2aad0b4}{EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+USE\+\_\+2\+\_\+\+FRICTION\+\_\+\+DIRECTIONS}} = 16
, \newline
\mbox{\hyperlink{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ab5343c995195505eeb2bf5c34fe631bc}{EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+SIMD}} = 256
 \}
\begin{DoxyCompactList}\small\item\em typedef EPhysics\+\_\+\+World\+\_\+\+Constraint\+\_\+\+Solver\+\_\+\+Mode \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EAPI \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$ \mbox{\hyperlink{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}{ephysics\+\_\+world\+\_\+new}} (void)
\begin{DoxyCompactList}\small\item\em Create a new physics world. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} x, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} y, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} z, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} w, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} h, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} d)
\begin{DoxyCompactList}\small\item\em Set dimensions of rendered area to be take on account by default updates. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga6bc905b2f56aa2a6c567d9a1575f9075}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$x, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$y, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$z, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$w, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$h, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$d)
\begin{DoxyCompactList}\small\item\em Get dimensions of rendered area to be take on account by default updates. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_gafdf9ecb15c2fc0ecc4ab54de55005427}{ephysics\+\_\+world\+\_\+serialize}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, const char $\ast$path)
\begin{DoxyCompactList}\small\item\em Serializes the {\ttfamily world} to {\ttfamily path}. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}{ephysics\+\_\+world\+\_\+del}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Deletes a physics world. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}{ephysics\+\_\+world\+\_\+running\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} running)
\begin{DoxyCompactList}\small\item\em Set running status of world. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga1bba3c8099e200459f0c0b0865efd17a}{ephysics\+\_\+world\+\_\+running\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get running status of world. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga797b98c12273d85f7dd5b30a911f76f2}{ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double sleeping\+\_\+time)
\begin{DoxyCompactList}\small\item\em Set the max sleeping time value. \end{DoxyCompactList}\item 
EAPI double \mbox{\hyperlink{group__EPhysics__World_ga083912a5014474719d38e05de367836d}{ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get the max sleeping time value for {\ttfamily world}. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}{ephysics\+\_\+world\+\_\+gravity\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double gx, double gy, double gz)
\begin{DoxyCompactList}\small\item\em Set world gravity in the 3 axes (x, y, z). \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga3f64766b79c71155d06f1bf4931bb84d}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, int iterations)
\begin{DoxyCompactList}\small\item\em Set the number of iterations the {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} will have for contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraints}}}}. \end{DoxyCompactList}\item 
EAPI int \mbox{\hyperlink{group__EPhysics__World_gaa0a6b5aae6ae432449981daa47f0a819}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get the number of iterations the {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} will have for contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraints}}}}. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gab6e3fd1ef7c6ae7f8c99992861084f0f}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode solver\+\_\+mode, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} enable)
\begin{DoxyCompactList}\small\item\em Enable or disable a {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} mode to {\ttfamily world}. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga8b1458e740ae1003b9f721b666d66c5b}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode solver\+\_\+mode)
\begin{DoxyCompactList}\small\item\em Get the {\ttfamily solver\+\_\+mode} status on {\ttfamily world}. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga8a0636506c8fcd3ed4285d90ce41dcdd}{ephysics\+\_\+world\+\_\+gravity\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double $\ast$gx, double $\ast$gy, double $\ast$gz)
\begin{DoxyCompactList}\small\item\em Get world gravity values for axis x, y and z. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga8327212faf3a8016382056b29fcec387}{ephysics\+\_\+world\+\_\+rate\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double rate)
\begin{DoxyCompactList}\small\item\em Set rate between pixels on evas canvas and meters on ephysics world. \end{DoxyCompactList}\item 
EAPI double \mbox{\hyperlink{group__EPhysics__World_ga4191077d4da05cfe550e9690fc311213}{ephysics\+\_\+world\+\_\+rate\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get rate between pixels on evas canvas and meters on ephysics world. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ \mbox{\hyperlink{group__EPhysics__World_ga19a243807dd0ea1d60fb3bd96a79f6cf}{ephysics\+\_\+world\+\_\+bodies\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Gets the world\textquotesingle{}s bodies list. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__EPhysics__Camera_ga945948dcbf4d98beb457c77b6537116f}{EPhysics\+\_\+\+Camera}} $\ast$ \mbox{\hyperlink{group__EPhysics__World_gac676a37c869af5ec41fab3268e53ed21}{ephysics\+\_\+world\+\_\+camera\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get the camera used by an ephysics world. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}} type, \mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Register a callback to a type of physics world event. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__EPhysics__World_ga18a22f2675efb1733290e6ac8f4fb9e2}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}} type, \mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}} func)
\begin{DoxyCompactList}\small\item\em Unregister an ephysics world event callback. \end{DoxyCompactList}\item 
EAPI void $\ast$ \mbox{\hyperlink{group__EPhysics__World_ga087d06ce662e1c5a14e8a2fa080b6170}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del\+\_\+full}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}} type, \mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}} func, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Unregister an ephysics world event callback matching data pointer. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga2a0c4f4c910574ebcaa26f001804e0bb}{ephysics\+\_\+world\+\_\+linear\+\_\+slop\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double linear\+\_\+slop)
\begin{DoxyCompactList}\small\item\em Set linear slop to be used by world. \end{DoxyCompactList}\item 
EAPI double \mbox{\hyperlink{group__EPhysics__World_ga303b3aac240db8fb2cc3e52269183c4f}{ephysics\+\_\+world\+\_\+linear\+\_\+slop\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get linear slop used by world. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the top. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_gae97bd69521f684f1258257e12161b697}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the top. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the bottom. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_gaefcba9ab8214650ea77e786d572e554e}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the bottom. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the right. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga441d22350368e7db4861d2863b2151cc}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the right. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the left. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the left. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the front. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga0d8bbc0e15ffb6c21dd7784faac4aa41}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the front. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} autodel)
\begin{DoxyCompactList}\small\item\em Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the back. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga4895f508065ccf3f5aa4d71e8e5c3436}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the back. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gab605cbebcc53278db5138f68df074607}{ephysics\+\_\+world\+\_\+simulation\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double fixed\+\_\+time\+\_\+step, int max\+\_\+sub\+\_\+steps)
\begin{DoxyCompactList}\small\item\em Set world simulation\textquotesingle{}s fixed time step and max number of sub steps configuration. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga12e0d7a91f40bdeb16e6e13e0f4f7661}{ephysics\+\_\+world\+\_\+simulation\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, double $\ast$fixed\+\_\+time\+\_\+step, int $\ast$max\+\_\+sub\+\_\+steps)
\begin{DoxyCompactList}\small\item\em Get world simulation\textquotesingle{}s fixed time step and max number of sub steps configuration. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} lx, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} ly, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} lz)
\begin{DoxyCompactList}\small\item\em Set position of point light to be applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_gad8a25241614ac01d37df87cc2668bf9e}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, int lr, int lg, int lb)
\begin{DoxyCompactList}\small\item\em Set color of point light to be applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga564febf03357030ed82748572f25ddb8}{ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, int ar, int ag, int ab)
\begin{DoxyCompactList}\small\item\em Set color of the ambient light to be applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga202072d9ea09764d6127f0e70dc7ac03}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$lx, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$ly, \mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$lz)
\begin{DoxyCompactList}\small\item\em Get position of point light applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga99817f08b591d802c99b274070d01bc1}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, int $\ast$lr, int $\ast$lg, int $\ast$lb)
\begin{DoxyCompactList}\small\item\em Get color of point light applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga982ae13814b01b6419dcf853db332e3d}{ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, int $\ast$ar, int $\ast$ag, int $\ast$ab)
\begin{DoxyCompactList}\small\item\em Set color of the ambient light to be applied on the scene. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}{ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} enable)
\begin{DoxyCompactList}\small\item\em Set if light should be applied over all the bodies. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_ga3a94f91f0748f640140b8a4fa57dbea0}{ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get light setting regarding being applied over all the bodies. \end{DoxyCompactList}\item 
EAPI void \mbox{\hyperlink{group__EPhysics__World_ga0f9ea8e4dff64ad639c3f4c0075fbec9}{ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+set}} (\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} enabled)
\begin{DoxyCompactList}\small\item\em Enable / disable stacking based on bodies z coordinates. \end{DoxyCompactList}\item 
EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__EPhysics__World_gaf6eccd13662674b879c91b24a1913bfc}{ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+get}} (const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$world)
\begin{DoxyCompactList}\small\item\em Get stacking status of world. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A world is required to simulate physics between bodies. 

It will setup collision configuration, {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}}, the {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Broadphase}{\texttt{ broadphase}}}} interface and a dispatcher to dispatch calculations for overlapping pairs.

A new world can be created with \mbox{\hyperlink{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}{ephysics\+\_\+world\+\_\+new()}} and deleted with \mbox{\hyperlink{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}{ephysics\+\_\+world\+\_\+del()}}. It can have its gravity changed with \mbox{\hyperlink{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}{ephysics\+\_\+world\+\_\+gravity\+\_\+set()}} and play / paused with \mbox{\hyperlink{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}{ephysics\+\_\+world\+\_\+running\+\_\+set()}}. When running, the simulation will be gradually stepped. 

\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}\label{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}} 
\index{EPhysics World@{EPhysics World}!EPhysics\_World@{EPhysics\_World}}
\index{EPhysics\_World@{EPhysics\_World}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{EPhysics\_World}{EPhysics\_World}}
{\footnotesize\ttfamily typedef struct \+\_\+\+EPhysics\+\_\+\+World \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}}}



World handle, most basic type of EPhysics. 

Created with \mbox{\hyperlink{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}{ephysics\+\_\+world\+\_\+new()}} and deleted with \mbox{\hyperlink{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}{ephysics\+\_\+world\+\_\+del()}}. \mbox{\Hypertarget{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}\label{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}} 
\index{EPhysics World@{EPhysics World}!EPhysics\_Callback\_World\_Type@{EPhysics\_Callback\_World\_Type}}
\index{EPhysics\_Callback\_World\_Type@{EPhysics\_Callback\_World\_Type}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{EPhysics\_Callback\_World\_Type}{EPhysics\_Callback\_World\_Type}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}}



Identifier of callbacks to be set for EPhysics worlds. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add()}} 

\mbox{\hyperlink{group__EPhysics__World_ga18a22f2675efb1733290e6ac8f4fb9e2}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del()}} 

\mbox{\hyperlink{group__EPhysics__World_ga087d06ce662e1c5a14e8a2fa080b6170}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del\+\_\+full()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}\label{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}} 
\index{EPhysics World@{EPhysics World}!EPhysics\_World\_Event\_Cb@{EPhysics\_World\_Event\_Cb}}
\index{EPhysics\_World\_Event\_Cb@{EPhysics\_World\_Event\_Cb}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{EPhysics\_World\_Event\_Cb}{EPhysics\_World\_Event\_Cb}}
{\footnotesize\ttfamily EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}



EPhysics world event callback function signature. 

Callbacks can be registered for events like world deleting.


\begin{DoxyParams}{Parameters}
{\em data} & User data that will be set when registering the callback. \\
\hline
{\em world} & Physics world. \\
\hline
{\em event\+\_\+info} & Data specific to a kind of event. Some types of events don\textquotesingle{}t have {\ttfamily event\+\_\+info}.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add()}} for more info. 
\end{DoxySeeAlso}


\doxysubsection{Enumeration Type Documentation}
\mbox{\Hypertarget{group__EPhysics__World_ga0b0aff31f415be24679d4ab703674619}\label{group__EPhysics__World_ga0b0aff31f415be24679d4ab703674619}} 
\index{EPhysics World@{EPhysics World}!\_EPhysics\_Callback\_World\_Type@{\_EPhysics\_Callback\_World\_Type}}
\index{\_EPhysics\_Callback\_World\_Type@{\_EPhysics\_Callback\_World\_Type}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{\_EPhysics\_Callback\_World\_Type}{\_EPhysics\_Callback\_World\_Type}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__EPhysics__World_ga0b0aff31f415be24679d4ab703674619}{\+\_\+\+EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_CALLBACK\_WORLD\_DEL@{EPHYSICS\_CALLBACK\_WORLD\_DEL}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_CALLBACK\_WORLD\_DEL@{EPHYSICS\_CALLBACK\_WORLD\_DEL}}}\mbox{\Hypertarget{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ae42b35c975ed4847c43373b2c5abf2b8}\label{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ae42b35c975ed4847c43373b2c5abf2b8}} 
EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+DEL&World being deleted (called before free) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_CALLBACK\_WORLD\_STOPPED@{EPHYSICS\_CALLBACK\_WORLD\_STOPPED}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_CALLBACK\_WORLD\_STOPPED@{EPHYSICS\_CALLBACK\_WORLD\_STOPPED}}}\mbox{\Hypertarget{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ac553fa1d8ca19d2d17fe4cb7801c52ba}\label{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ac553fa1d8ca19d2d17fe4cb7801c52ba}} 
EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+STOPPED&no objects are moving any more \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_CALLBACK\_WORLD\_CAMERA\_MOVED@{EPHYSICS\_CALLBACK\_WORLD\_CAMERA\_MOVED}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_CALLBACK\_WORLD\_CAMERA\_MOVED@{EPHYSICS\_CALLBACK\_WORLD\_CAMERA\_MOVED}}}\mbox{\Hypertarget{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619aa5f6adbd98bc6599221d12ecfeb1cbc6}\label{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619aa5f6adbd98bc6599221d12ecfeb1cbc6}} 
EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+CAMERA\+\_\+\+MOVED&camera position changed \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_CALLBACK\_WORLD\_UPDATE@{EPHYSICS\_CALLBACK\_WORLD\_UPDATE}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_CALLBACK\_WORLD\_UPDATE@{EPHYSICS\_CALLBACK\_WORLD\_UPDATE}}}\mbox{\Hypertarget{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a8fae2bbe9fcb164d9848fbd929462fbb}\label{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a8fae2bbe9fcb164d9848fbd929462fbb}} 
EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+UPDATE&world being updated \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_CALLBACK\_WORLD\_LAST@{EPHYSICS\_CALLBACK\_WORLD\_LAST}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_CALLBACK\_WORLD\_LAST@{EPHYSICS\_CALLBACK\_WORLD\_LAST}}}\mbox{\Hypertarget{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a022f6c857a8cea0a1adb2bbe5c6822fa}\label{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619a022f6c857a8cea0a1adb2bbe5c6822fa}} 
EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+LAST&kept as sentinel, not really an event \\
\hline

\end{DoxyEnumFields}
\mbox{\Hypertarget{group__EPhysics__World_ga5723626f948a9e8951324c4ffcbfa3c3}\label{group__EPhysics__World_ga5723626f948a9e8951324c4ffcbfa3c3}} 
\index{EPhysics World@{EPhysics World}!\_EPhysics\_World\_Constraint\_Solver\_Mode@{\_EPhysics\_World\_Constraint\_Solver\_Mode}}
\index{\_EPhysics\_World\_Constraint\_Solver\_Mode@{\_EPhysics\_World\_Constraint\_Solver\_Mode}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{\_EPhysics\_World\_Constraint\_Solver\_Mode}{\_EPhysics\_World\_Constraint\_Solver\_Mode}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__EPhysics__World_ga5723626f948a9e8951324c4ffcbfa3c3}{\+\_\+\+EPhysics\+\_\+\+World\+\_\+\+Constraint\+\_\+\+Solver\+\_\+\+Mode}}}



typedef EPhysics\+\_\+\+World\+\_\+\+Constraint\+\_\+\+Solver\+\_\+\+Mode 

Identifies the worlds contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraint}}}} solver mode. By default EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+USE\+\_\+\+WARMSTARTING is the only enabled solver mode.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab6e3fd1ef7c6ae7f8c99992861084f0f}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+set()}} 

\mbox{\hyperlink{group__EPhysics__World_ga8b1458e740ae1003b9f721b666d66c5b}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+get()}} 
\end{DoxySeeAlso}
\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_WORLD\_SOLVER\_RANDMIZE\_ORDER@{EPHYSICS\_WORLD\_SOLVER\_RANDMIZE\_ORDER}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_WORLD\_SOLVER\_RANDMIZE\_ORDER@{EPHYSICS\_WORLD\_SOLVER\_RANDMIZE\_ORDER}}}\mbox{\Hypertarget{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ac05bb8f778c529de7f2d209708ec55b7}\label{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ac05bb8f778c529de7f2d209708ec55b7}} 
EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+RANDMIZE\+\_\+\+ORDER&Randomize the order of solving the constraint rows. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_WORLD\_SOLVER\_USE\_WARMSTARTING@{EPHYSICS\_WORLD\_SOLVER\_USE\_WARMSTARTING}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_WORLD\_SOLVER\_USE\_WARMSTARTING@{EPHYSICS\_WORLD\_SOLVER\_USE\_WARMSTARTING}}}\mbox{\Hypertarget{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3afd99d0a859514f82a1930eb49b55f754}\label{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3afd99d0a859514f82a1930eb49b55f754}} 
EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+USE\+\_\+\+WARMSTARTING&The PGS is an iterative algorithm where each iteration is based on the solution of previous iteration, if no warmstarting is used, the initial solution for PGS is set to zero each frame (by default this mode is enabled, disabling this mode the user can face a better performance depending on the amount of objects in the simulation) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_WORLD\_SOLVER\_USE\_2\_FRICTION\_DIRECTIONS@{EPHYSICS\_WORLD\_SOLVER\_USE\_2\_FRICTION\_DIRECTIONS}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_WORLD\_SOLVER\_USE\_2\_FRICTION\_DIRECTIONS@{EPHYSICS\_WORLD\_SOLVER\_USE\_2\_FRICTION\_DIRECTIONS}}}\mbox{\Hypertarget{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3a81c043ce000eec701e73d383a2aad0b4}\label{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3a81c043ce000eec701e73d383a2aad0b4}} 
EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+USE\+\_\+2\+\_\+\+FRICTION\+\_\+\+DIRECTIONS&While calculating a friction impulse consider this should be applied on both bodies (this mode cause a better stacking stabilization) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EPHYSICS\_WORLD\_SOLVER\_SIMD@{EPHYSICS\_WORLD\_SOLVER\_SIMD}!EPhysics World@{EPhysics World}}\index{EPhysics World@{EPhysics World}!EPHYSICS\_WORLD\_SOLVER\_SIMD@{EPHYSICS\_WORLD\_SOLVER\_SIMD}}}\mbox{\Hypertarget{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ab5343c995195505eeb2bf5c34fe631bc}\label{group__EPhysics__World_gga5723626f948a9e8951324c4ffcbfa3c3ab5343c995195505eeb2bf5c34fe631bc}} 
EPHYSICS\+\_\+\+WORLD\+\_\+\+SOLVER\+\_\+\+SIMD&Use a SSE optimized innerloop, using assembly intrinsics, this is implemented and can be enabled/disabled for Windows and Mac OSX versions, single-\/precision floating point, 32bit(disabled by default) \\
\hline

\end{DoxyEnumFields}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}\label{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_new@{ephysics\_world\_new}}
\index{ephysics\_world\_new@{ephysics\_world\_new}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_new()}{ephysics\_world\_new()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$ ephysics\+\_\+world\+\_\+new (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Create a new physics world. 

A new world will be created with set collision configuration, {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}}, {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Broadphase}{\texttt{ broadphase}}}} interface and dispatcher.

It can be paused / unpaused with \mbox{\hyperlink{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}{ephysics\+\_\+world\+\_\+running\+\_\+set()}} and its gravity can be changed with \mbox{\hyperlink{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}{ephysics\+\_\+world\+\_\+gravity\+\_\+set()}}.

By default it starts with gravity y = 294 Evas coordinates per second $^\wedge$ 2 and playing.

If default updates between physics bodies and evas objects will be used it\textquotesingle{}s mandatory to set the size of the area to be rendered with \mbox{\hyperlink{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+set()}}.

\begin{DoxyReturn}{Returns}
A new world or {\ttfamily NULL}, on errors.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}{ephysics\+\_\+world\+\_\+del()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}}, \mbox{\hyperlink{test_bouncing_ball_8c-example}{test\+\_\+bouncing\+\_\+ball.\+c}}, \mbox{\hyperlink{test_bouncing_text_8c-example}{test\+\_\+bouncing\+\_\+text.\+c}}, \mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}, \mbox{\hyperlink{test_camera_track_8c-example}{test\+\_\+camera\+\_\+track.\+c}}, \mbox{\hyperlink{test_collision_detection_8c-example}{test\+\_\+collision\+\_\+detection.\+c}}, \mbox{\hyperlink{test_collision_filter_8c-example}{test\+\_\+collision\+\_\+filter.\+c}}, \mbox{\hyperlink{test_constraint_8c-example}{test\+\_\+constraint.\+c}}, \mbox{\hyperlink{test_delete_8c-example}{test\+\_\+delete.\+c}}, \mbox{\hyperlink{test_forces_8c-example}{test\+\_\+forces.\+c}}, \mbox{\hyperlink{test_growing_balls_8c-example}{test\+\_\+growing\+\_\+balls.\+c}}, \mbox{\hyperlink{test_no_gravity_8c-example}{test\+\_\+no\+\_\+gravity.\+c}}, \mbox{\hyperlink{test_rotating_forever_8c-example}{test\+\_\+rotating\+\_\+forever.\+c}}, \mbox{\hyperlink{test_shapes_8c-example}{test\+\_\+shapes.\+c}}, \mbox{\hyperlink{test_sleeping_threshold_8c-example}{test\+\_\+sleeping\+\_\+threshold.\+c}}, \mbox{\hyperlink{test_slider_8c-example}{test\+\_\+slider.\+c}}, and \mbox{\hyperlink{test_velocity_8c-example}{test\+\_\+velocity.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}\label{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_render\_geometry\_set@{ephysics\_world\_render\_geometry\_set}}
\index{ephysics\_world\_render\_geometry\_set@{ephysics\_world\_render\_geometry\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_render\_geometry\_set()}{ephysics\_world\_render\_geometry\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{x,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{y,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{z,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{w,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{h,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{d }\end{DoxyParamCaption})}



Set dimensions of rendered area to be take on account by default updates. 

By default it starts with null x, y, width and height.

The physics world won\textquotesingle{}t be limited, but boundaries can be added with\+: \begin{DoxyItemize}
\item \mbox{\hyperlink{group__EPhysics__Body_ga58ecc44fc7febb980fe1857ef053f61f}{ephysics\+\_\+body\+\_\+top\+\_\+boundary\+\_\+add()}}, \item \mbox{\hyperlink{group__EPhysics__Body_ga41939240a53e1373d592b8a6be273978}{ephysics\+\_\+body\+\_\+bottom\+\_\+boundary\+\_\+add()}}, \item \mbox{\hyperlink{group__EPhysics__Body_ga6bad14ec64496e39d589ac25aee889f0}{ephysics\+\_\+body\+\_\+left\+\_\+boundary\+\_\+add()}}, \item \mbox{\hyperlink{group__EPhysics__Body_gaa2db93bfa483a5a1b755801d14a343dd}{ephysics\+\_\+body\+\_\+right\+\_\+boundary\+\_\+add()}}, \item \mbox{\hyperlink{group__EPhysics__Body_gaf91610f37186f2b0ace1030b3c85bd4f}{ephysics\+\_\+body\+\_\+front\+\_\+boundary\+\_\+add()}}, \item \mbox{\hyperlink{group__EPhysics__Body_gaa882272835bcd3e4d140a58c94e6c6df}{ephysics\+\_\+body\+\_\+back\+\_\+boundary\+\_\+add()}}.\end{DoxyItemize}

\begin{DoxyParams}{Parameters}
{\em world} & the world to be configured. \\
\hline
{\em x} & Coordinate x of the top left point of rendered area, in pixels. \\
\hline
{\em y} & Coordinate y of the top left point of rendered area, in pixels. \\
\hline
{\em z} & Coordinate z of the rendered area, in pixels. \\
\hline
{\em w} & rendered area width, in pixels. \\
\hline
{\em h} & rendered area height, in pixels. \\
\hline
{\em d} & rendered area depth, in pixels.\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
The unit used for geometry is Evas coordinates.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__Body_gada176f4748a4c2fc4ba2042021ea7067}{ephysics\+\_\+body\+\_\+event\+\_\+callback\+\_\+add()}} for more info. 

\mbox{\hyperlink{group__EPhysics__World_ga4191077d4da05cfe550e9690fc311213}{ephysics\+\_\+world\+\_\+rate\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6bc905b2f56aa2a6c567d9a1575f9075}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+get()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}}, \mbox{\hyperlink{test_bouncing_ball_8c-example}{test\+\_\+bouncing\+\_\+ball.\+c}}, \mbox{\hyperlink{test_bouncing_text_8c-example}{test\+\_\+bouncing\+\_\+text.\+c}}, \mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}, \mbox{\hyperlink{test_camera_track_8c-example}{test\+\_\+camera\+\_\+track.\+c}}, \mbox{\hyperlink{test_collision_detection_8c-example}{test\+\_\+collision\+\_\+detection.\+c}}, \mbox{\hyperlink{test_collision_filter_8c-example}{test\+\_\+collision\+\_\+filter.\+c}}, \mbox{\hyperlink{test_constraint_8c-example}{test\+\_\+constraint.\+c}}, \mbox{\hyperlink{test_delete_8c-example}{test\+\_\+delete.\+c}}, \mbox{\hyperlink{test_forces_8c-example}{test\+\_\+forces.\+c}}, \mbox{\hyperlink{test_growing_balls_8c-example}{test\+\_\+growing\+\_\+balls.\+c}}, \mbox{\hyperlink{test_no_gravity_8c-example}{test\+\_\+no\+\_\+gravity.\+c}}, \mbox{\hyperlink{test_rotating_forever_8c-example}{test\+\_\+rotating\+\_\+forever.\+c}}, \mbox{\hyperlink{test_shapes_8c-example}{test\+\_\+shapes.\+c}}, \mbox{\hyperlink{test_sleeping_threshold_8c-example}{test\+\_\+sleeping\+\_\+threshold.\+c}}, \mbox{\hyperlink{test_slider_8c-example}{test\+\_\+slider.\+c}}, and \mbox{\hyperlink{test_velocity_8c-example}{test\+\_\+velocity.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga6bc905b2f56aa2a6c567d9a1575f9075}\label{group__EPhysics__World_ga6bc905b2f56aa2a6c567d9a1575f9075}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_render\_geometry\_get@{ephysics\_world\_render\_geometry\_get}}
\index{ephysics\_world\_render\_geometry\_get@{ephysics\_world\_render\_geometry\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_render\_geometry\_get()}{ephysics\_world\_render\_geometry\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{x,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{y,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{z,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{w,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{h,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{d }\end{DoxyParamCaption})}



Get dimensions of rendered area to be take on account by default updates. 


\begin{DoxyParams}{Parameters}
{\em world} & the world to be configured. \\
\hline
{\em x} & Coordinate x of the top left point of rendered area, in pixels. \\
\hline
{\em y} & Coordinate y of the top left point of rendered area, in pixels. \\
\hline
{\em z} & Coordinate z of the rendered area, in pixels. \\
\hline
{\em w} & rendered area width, in pixels. \\
\hline
{\em h} & rendered area height, in pixels. \\
\hline
{\em d} & rendered area depth, in pixels.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+set()}} for more information. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_gafdf9ecb15c2fc0ecc4ab54de55005427}\label{group__EPhysics__World_gafdf9ecb15c2fc0ecc4ab54de55005427}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_serialize@{ephysics\_world\_serialize}}
\index{ephysics\_world\_serialize@{ephysics\_world\_serialize}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_serialize()}{ephysics\_world\_serialize()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+serialize (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{const char $\ast$}]{path }\end{DoxyParamCaption})}



Serializes the {\ttfamily world} to {\ttfamily path}. 

Save the dynamics world to a binary dump, a .bullet file.

\begin{DoxyNote}{Note}
Should be used only for debugging purposes.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em world} & the world to be serialized. \\
\hline
{\em path} & where the serialized world should be written to.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+TRUE on success, EINA\+\_\+\+FALSE otherwise 
\end{DoxyReturn}
\mbox{\Hypertarget{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}\label{group__EPhysics__World_ga99ebd1425f258f895c0089d6eb13def9}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_del@{ephysics\_world\_del}}
\index{ephysics\_world\_del@{ephysics\_world\_del}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_del()}{ephysics\_world\_del()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Deletes a physics world. 

It will also delete all bodies associated to it.


\begin{DoxyParams}{Parameters}
{\em world} & The world to be deleted.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga7b24e5bada9bcd105bc7d1e68cf2e44e}{ephysics\+\_\+world\+\_\+new()}} for more details. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ephysics_logo_8c-example}{ephysics\+\_\+logo.\+c}}, \mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}, \mbox{\hyperlink{test_camera_track_8c-example}{test\+\_\+camera\+\_\+track.\+c}}, \mbox{\hyperlink{test_collision_detection_8c-example}{test\+\_\+collision\+\_\+detection.\+c}}, \mbox{\hyperlink{test_delete_8c-example}{test\+\_\+delete.\+c}}, and \mbox{\hyperlink{test_velocity_8c-example}{test\+\_\+velocity.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}\label{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_running\_set@{ephysics\_world\_running\_set}}
\index{ephysics\_world\_running\_set@{ephysics\_world\_running\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_running\_set()}{ephysics\_world\_running\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+running\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{running }\end{DoxyParamCaption})}



Set running status of world. 

A world can be played / paused. When running, it will simulate the physics step by step. When paused, it will stop simulation. Consequently all the registered callbacks won\textquotesingle{}t be called since no event will occur (no collisions, no object updates).

When a world is created it starts running.


\begin{DoxyParams}{Parameters}
{\em world} & The world to be played / paused. \\
\hline
{\em running} & If {\ttfamily EINA\+\_\+\+TRUE} it will play, otherwise it will pause.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga1bba3c8099e200459f0c0b0865efd17a}{ephysics\+\_\+world\+\_\+running\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga1bba3c8099e200459f0c0b0865efd17a}\label{group__EPhysics__World_ga1bba3c8099e200459f0c0b0865efd17a}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_running\_get@{ephysics\_world\_running\_get}}
\index{ephysics\_world\_running\_get@{ephysics\_world\_running\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_running\_get()}{ephysics\_world\_running\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+running\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get running status of world. 

By default a world starts running.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if it\textquotesingle{}s running, or {\ttfamily EINA\+\_\+\+FALSE} if it\textquotesingle{}s paused or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga994f911d6249986a8d1c21fd53bec462}{ephysics\+\_\+world\+\_\+running\+\_\+set()}} for more details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga797b98c12273d85f7dd5b30a911f76f2}\label{group__EPhysics__World_ga797b98c12273d85f7dd5b30a911f76f2}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_max\_sleeping\_time\_set@{ephysics\_world\_max\_sleeping\_time\_set}}
\index{ephysics\_world\_max\_sleeping\_time\_set@{ephysics\_world\_max\_sleeping\_time\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_max\_sleeping\_time\_set()}{ephysics\_world\_max\_sleeping\_time\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double}]{sleeping\+\_\+time }\end{DoxyParamCaption})}



Set the max sleeping time value. 

This value determines how long(in seconds) a rigid body under the linear and angular threshold is supposed to be marked as sleeping. Default value is set to 2.\+0.


\begin{DoxyParams}{Parameters}
{\em world} & The world to set the max sleeping time. \\
\hline
{\em sleeping\+\_\+time} & The max sleeping time to set to {\ttfamily world}.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga083912a5014474719d38e05de367836d}{ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+get()}} 

\mbox{\hyperlink{group__EPhysics__Body_gaa65f3bf819cf09ac5da543ee6460a9f3}{ephysics\+\_\+body\+\_\+sleeping\+\_\+threshold\+\_\+set()}} for sleeping thresholds details. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_sleeping_threshold_8c-example}{test\+\_\+sleeping\+\_\+threshold.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga083912a5014474719d38e05de367836d}\label{group__EPhysics__World_ga083912a5014474719d38e05de367836d}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_max\_sleeping\_time\_get@{ephysics\_world\_max\_sleeping\_time\_get}}
\index{ephysics\_world\_max\_sleeping\_time\_get@{ephysics\_world\_max\_sleeping\_time\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_max\_sleeping\_time\_get()}{ephysics\_world\_max\_sleeping\_time\_get()}}
{\footnotesize\ttfamily EAPI double ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get the max sleeping time value for {\ttfamily world}. 


\begin{DoxyParams}{Parameters}
{\em world} & The world to get the max sleeping time from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The max sleeping time from {\ttfamily world}.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga797b98c12273d85f7dd5b30a911f76f2}{ephysics\+\_\+world\+\_\+max\+\_\+sleeping\+\_\+time\+\_\+set()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}\label{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_gravity\_set@{ephysics\_world\_gravity\_set}}
\index{ephysics\_world\_gravity\_set@{ephysics\_world\_gravity\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_gravity\_set()}{ephysics\_world\_gravity\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+gravity\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double}]{gx,  }\item[{double}]{gy,  }\item[{double}]{gz }\end{DoxyParamCaption})}



Set world gravity in the 3 axes (x, y, z). 

Gravity will act over bodies with mass over all the time.

By default values are 0, 294, 0 Evas Coordinates per second $^\wedge$ 2 (9.\+8 m/s$^\wedge$2, since we\textquotesingle{}ve a default rate of 30 pixels).

If you change the rate but wants to keep 9.\+8 m/s$^\wedge$2, you well need to set world gravity with\+: 9.\+8 $\ast$ new\+\_\+rate.


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
{\em gx} & Gravity on x axis. \\
\hline
{\em gy} & Gravity on y axis. \\
\hline
{\em gz} & Gravity on z axis.\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
The unit used for acceleration is Evas coordinates per second $^\wedge$ 2.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga8a0636506c8fcd3ed4285d90ce41dcdd}{ephysics\+\_\+world\+\_\+gravity\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga8327212faf3a8016382056b29fcec387}{ephysics\+\_\+world\+\_\+rate\+\_\+set()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_forces_8c-example}{test\+\_\+forces.\+c}}, \mbox{\hyperlink{test_no_gravity_8c-example}{test\+\_\+no\+\_\+gravity.\+c}}, and \mbox{\hyperlink{test_rotating_forever_8c-example}{test\+\_\+rotating\+\_\+forever.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga3f64766b79c71155d06f1bf4931bb84d}\label{group__EPhysics__World_ga3f64766b79c71155d06f1bf4931bb84d}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_constraint\_solver\_iterations\_set@{ephysics\_world\_constraint\_solver\_iterations\_set}}
\index{ephysics\_world\_constraint\_solver\_iterations\_set@{ephysics\_world\_constraint\_solver\_iterations\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_constraint\_solver\_iterations\_set()}{ephysics\_world\_constraint\_solver\_iterations\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{int}]{iterations }\end{DoxyParamCaption})}



Set the number of iterations the {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} will have for contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraints}}}}. 

The default value is set to 10. The greater number of iterations more quality and precise the result but with performance penalty.

By default, the Projected Gauss Seidel {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} is used for contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraints}}}}. The algorithm is an iterative LCP solver, informally known as \textquotesingle{}sequential impulse\textquotesingle{}.

A reasonable range of iterations is from 4 (low quality, good performance) to 20 (good quality, less but still reasonable performance).


\begin{DoxyParams}{Parameters}
{\em world} & The world to be set. \\
\hline
{\em iterations} & The number of iterations to be set.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gaa0a6b5aae6ae432449981daa47f0a819}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+get()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gaa0a6b5aae6ae432449981daa47f0a819}\label{group__EPhysics__World_gaa0a6b5aae6ae432449981daa47f0a819}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_constraint\_solver\_iterations\_get@{ephysics\_world\_constraint\_solver\_iterations\_get}}
\index{ephysics\_world\_constraint\_solver\_iterations\_get@{ephysics\_world\_constraint\_solver\_iterations\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_constraint\_solver\_iterations\_get()}{ephysics\_world\_constraint\_solver\_iterations\_get()}}
{\footnotesize\ttfamily EAPI int ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get the number of iterations the {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} will have for contact and {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Glossary_of_
Terms\#Joint.2C_constraint}{\texttt{ joint constraints}}}}. 


\begin{DoxyParams}{Parameters}
{\em world} & The world to get number of iterations from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the number of iterations set to {\ttfamily world}, or 0 on failure.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga3f64766b79c71155d06f1bf4931bb84d}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+iterations\+\_\+set()}} for its meaning. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gab6e3fd1ef7c6ae7f8c99992861084f0f}\label{group__EPhysics__World_gab6e3fd1ef7c6ae7f8c99992861084f0f}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_constraint\_solver\_mode\_enable\_set@{ephysics\_world\_constraint\_solver\_mode\_enable\_set}}
\index{ephysics\_world\_constraint\_solver\_mode\_enable\_set@{ephysics\_world\_constraint\_solver\_mode\_enable\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_constraint\_solver\_mode\_enable\_set()}{ephysics\_world\_constraint\_solver\_mode\_enable\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode}]{solver\+\_\+mode,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{enable }\end{DoxyParamCaption})}



Enable or disable a {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} mode to {\ttfamily world}. 

A world can operate on several {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} modes.


\begin{DoxyParams}{Parameters}
{\em world} & The world to be set. \\
\hline
{\em solver\+\_\+mode} & The solver mode to set. \\
\hline
{\em enable} & If {\ttfamily EINA\+\_\+\+TRUE} enable the mode, if EINA\+\_\+\+FALSE, disable it.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode for supported solver modes. 

\mbox{\hyperlink{group__EPhysics__World_ga8b1458e740ae1003b9f721b666d66c5b}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga8b1458e740ae1003b9f721b666d66c5b}\label{group__EPhysics__World_ga8b1458e740ae1003b9f721b666d66c5b}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_constraint\_solver\_mode\_enable\_get@{ephysics\_world\_constraint\_solver\_mode\_enable\_get}}
\index{ephysics\_world\_constraint\_solver\_mode\_enable\_get@{ephysics\_world\_constraint\_solver\_mode\_enable\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_constraint\_solver\_mode\_enable\_get()}{ephysics\_world\_constraint\_solver\_mode\_enable\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{EPhysics\+\_\+\+World\+\_\+\+Solver\+\_\+\+Mode}]{solver\+\_\+mode }\end{DoxyParamCaption})}



Get the {\ttfamily solver\+\_\+mode} status on {\ttfamily world}. 


\begin{DoxyParams}{Parameters}
{\em world} & The world to be queried. \\
\hline
{\em solver\+\_\+mode} & The solver mode of interest. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+TRUE if {\ttfamily solver\+\_\+mode} is enabled, EINA\+\_\+\+FALSE otherwise.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab6e3fd1ef7c6ae7f8c99992861084f0f}{ephysics\+\_\+world\+\_\+constraint\+\_\+solver\+\_\+mode\+\_\+enable\+\_\+set()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga8a0636506c8fcd3ed4285d90ce41dcdd}\label{group__EPhysics__World_ga8a0636506c8fcd3ed4285d90ce41dcdd}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_gravity\_get@{ephysics\_world\_gravity\_get}}
\index{ephysics\_world\_gravity\_get@{ephysics\_world\_gravity\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_gravity\_get()}{ephysics\_world\_gravity\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+gravity\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double $\ast$}]{gx,  }\item[{double $\ast$}]{gy,  }\item[{double $\ast$}]{gz }\end{DoxyParamCaption})}



Get world gravity values for axis x, y and z. 


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
{\em gx} & Gravity on x axis. \\
\hline
{\em gy} & Gravity on y axis. \\
\hline
{\em gz} & Gravity on y axis.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}{ephysics\+\_\+world\+\_\+gravity\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga8327212faf3a8016382056b29fcec387}\label{group__EPhysics__World_ga8327212faf3a8016382056b29fcec387}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_rate\_set@{ephysics\_world\_rate\_set}}
\index{ephysics\_world\_rate\_set@{ephysics\_world\_rate\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_rate\_set()}{ephysics\_world\_rate\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+rate\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double}]{rate }\end{DoxyParamCaption})}



Set rate between pixels on evas canvas and meters on ephysics world. 

It will be used by automatic updates of evas objects associated to physics bodies.

By default its value is 30 Evas coordinates (pixels) per meter.

If you change the rate but wants to keep gravity as (0, 9.\+8 m/s$^\wedge$2), you well need to set world gravity with\+: 9.\+8 $\ast$ new\+\_\+rate. For this, use \mbox{\hyperlink{group__EPhysics__World_ga849f9d794ce5da7bf07f0bfc71aa5b6c}{ephysics\+\_\+world\+\_\+gravity\+\_\+set()}};


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
{\em rate} & Rate between pixels and meters. Value must be \texorpdfstring{$>$}{>} 0.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__Body_gada176f4748a4c2fc4ba2042021ea7067}{ephysics\+\_\+body\+\_\+event\+\_\+callback\+\_\+add()}} for more info. 

\mbox{\hyperlink{group__EPhysics__World_ga4191077d4da05cfe550e9690fc311213}{ephysics\+\_\+world\+\_\+rate\+\_\+get()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga4191077d4da05cfe550e9690fc311213}\label{group__EPhysics__World_ga4191077d4da05cfe550e9690fc311213}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_rate\_get@{ephysics\_world\_rate\_get}}
\index{ephysics\_world\_rate\_get@{ephysics\_world\_rate\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_rate\_get()}{ephysics\_world\_rate\_get()}}
{\footnotesize\ttfamily EAPI double ephysics\+\_\+world\+\_\+rate\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get rate between pixels on evas canvas and meters on ephysics world. 


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The rate between pixels and meters.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga8327212faf3a8016382056b29fcec387}{ephysics\+\_\+world\+\_\+rate\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga19a243807dd0ea1d60fb3bd96a79f6cf}\label{group__EPhysics__World_ga19a243807dd0ea1d60fb3bd96a79f6cf}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_get@{ephysics\_world\_bodies\_get}}
\index{ephysics\_world\_bodies\_get@{ephysics\_world\_bodies\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_get()}{ephysics\_world\_bodies\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__List__Group_ga3295e1210efea1fb0fd6acbf3cbc1f29}{Eina\+\_\+\+List}} $\ast$ ephysics\+\_\+world\+\_\+bodies\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Gets the world\textquotesingle{}s bodies list. 


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The list of bodies that belongs to this {\ttfamily world}.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The list should be freed after usage.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__Body_gaf2c29ed64a1c548903c39400af792293}{ephysics\+\_\+body\+\_\+cylinder\+\_\+add()}}. 

\mbox{\hyperlink{group__EPhysics__Body_ga6381538c9002ea30171c0a64100350f5}{ephysics\+\_\+body\+\_\+box\+\_\+add()}}. 

\mbox{\hyperlink{group__EPhysics__Body_ga9f47ada6fe8ee0abb234bc4aaab7dd1c}{ephysics\+\_\+body\+\_\+del()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gac676a37c869af5ec41fab3268e53ed21}\label{group__EPhysics__World_gac676a37c869af5ec41fab3268e53ed21}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_camera\_get@{ephysics\_world\_camera\_get}}
\index{ephysics\_world\_camera\_get@{ephysics\_world\_camera\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_camera\_get()}{ephysics\_world\_camera\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__EPhysics__Camera_ga945948dcbf4d98beb457c77b6537116f}{EPhysics\+\_\+\+Camera}} $\ast$ ephysics\+\_\+world\+\_\+camera\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get the camera used by an ephysics world. 


\begin{DoxyParams}{Parameters}
{\em world} & The world object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The camera.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__Camera_gaed0ba3e4daecc66fca5dc399031da530}{ephysics\+\_\+camera\+\_\+position\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__Camera_gabb7602830e3a9daa67d7bbe1a71a776e}{ephysics\+\_\+camera\+\_\+body\+\_\+track()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}, and \mbox{\hyperlink{test_camera_track_8c-example}{test\+\_\+camera\+\_\+track.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}\label{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_event\_callback\_add@{ephysics\_world\_event\_callback\_add}}
\index{ephysics\_world\_event\_callback\_add@{ephysics\_world\_event\_callback\_add}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_event\_callback\_add()}{ephysics\_world\_event\_callback\_add()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}}]{type,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Register a callback to a type of physics world event. 

The registered callback will receives the world and extra user data that can be passed.

What follows is a list of details about each callback type\+:


\begin{DoxyItemize}
\item \mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ae42b35c975ed4847c43373b2c5abf2b8}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+DEL}}\+: Called just before a world is freed. No event\+\_\+info is passed to the callback.
\item \mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ac553fa1d8ca19d2d17fe4cb7801c52ba}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+STOPPED}}\+: Called when all the bodies are stopped. No event\+\_\+info is passed to the callback.
\item \mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619aa5f6adbd98bc6599221d12ecfeb1cbc6}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+CAMERA\+\_\+\+MOVED}}\+: Called if camera position changed on physics simulation tick. Camera is passed as event\+\_\+info to the callback. Useful to move backgrounds, since objects would be already updated considering camera\textquotesingle{}s position.
\end{DoxyItemize}


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em type} & Type of callback to be listened by {\ttfamily func}. \\
\hline
{\em func} & Callback function that will be called when event occurs. \\
\hline
{\em data} & User data that will be passed to callback function. It won\textquotesingle{}t be used by ephysics in any way. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_camera_8c-example}{test\+\_\+camera.\+c}}, and \mbox{\hyperlink{test_camera_track_8c-example}{test\+\_\+camera\+\_\+track.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga18a22f2675efb1733290e6ac8f4fb9e2}\label{group__EPhysics__World_ga18a22f2675efb1733290e6ac8f4fb9e2}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_event\_callback\_del@{ephysics\_world\_event\_callback\_del}}
\index{ephysics\_world\_event\_callback\_del@{ephysics\_world\_event\_callback\_del}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_event\_callback\_del()}{ephysics\_world\_event\_callback\_del()}}
{\footnotesize\ttfamily EAPI void $\ast$ ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}}]{type,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}}}]{func }\end{DoxyParamCaption})}



Unregister an ephysics world event callback. 

A previously added callback that match {\ttfamily world}, {\ttfamily type} and {\ttfamily func} will be deleted.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em type} & The type of callback to be unregistered. \\
\hline
{\em func} & The callback function to be unregistered. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The user data passed when the callback was registered, or {\ttfamily NULL} on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add()}} for details. 

\mbox{\hyperlink{group__EPhysics__World_ga087d06ce662e1c5a14e8a2fa080b6170}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del\+\_\+full()}} if you need to match data pointer. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga087d06ce662e1c5a14e8a2fa080b6170}\label{group__EPhysics__World_ga087d06ce662e1c5a14e8a2fa080b6170}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_event\_callback\_del\_full@{ephysics\_world\_event\_callback\_del\_full}}
\index{ephysics\_world\_event\_callback\_del\_full@{ephysics\_world\_event\_callback\_del\_full}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_event\_callback\_del\_full()}{ephysics\_world\_event\_callback\_del\_full()}}
{\footnotesize\ttfamily EAPI void $\ast$ ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del\+\_\+full (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga3bc002ee27ad02e470e7c9a96cc216bf}{EPhysics\+\_\+\+Callback\+\_\+\+World\+\_\+\+Type}}}]{type,  }\item[{\mbox{\hyperlink{group__EPhysics__World_ga4d9063ac39aa180c0eea39e5849ac96f}{EPhysics\+\_\+\+World\+\_\+\+Event\+\_\+\+Cb}}}]{func,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Unregister an ephysics world event callback matching data pointer. 

A previously added callback that match {\ttfamily world}, {\ttfamily type}, {\ttfamily func} and {\ttfamily data} will be deleted.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em type} & The type of callback to be unregistered. \\
\hline
{\em func} & The callback function to be unregistered. \\
\hline
{\em data} & The data pointer that was passed to the callback. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The user data passed when the callback was registered, or {\ttfamily NULL} on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga2b621ffb39920e4619fe2ec2e5508073}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+add()}} for details. 

\mbox{\hyperlink{group__EPhysics__World_ga18a22f2675efb1733290e6ac8f4fb9e2}{ephysics\+\_\+world\+\_\+event\+\_\+callback\+\_\+del()}} if you don\textquotesingle{}t need to match data pointer. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga2a0c4f4c910574ebcaa26f001804e0bb}\label{group__EPhysics__World_ga2a0c4f4c910574ebcaa26f001804e0bb}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_linear\_slop\_set@{ephysics\_world\_linear\_slop\_set}}
\index{ephysics\_world\_linear\_slop\_set@{ephysics\_world\_linear\_slop\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_linear\_slop\_set()}{ephysics\_world\_linear\_slop\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+linear\+\_\+slop\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double}]{linear\+\_\+slop }\end{DoxyParamCaption})}



Set linear slop to be used by world. 

{\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ Constraint solver}}}} can be configured using some advanced settings, like the solver slop factor.

The default value is set to 0 with a small value results in a smoother stabilization for stacking bodies.

Linear slop on sequencial impulse {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} is used as a factor for penetration. The penetration will the manifold distance + linear slop.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em linear\+\_\+slop} & New linear slop value to be used by {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} of physics engine. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__EPhysics__World_ga303b3aac240db8fb2cc3e52269183c4f}\label{group__EPhysics__World_ga303b3aac240db8fb2cc3e52269183c4f}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_linear\_slop\_get@{ephysics\_world\_linear\_slop\_get}}
\index{ephysics\_world\_linear\_slop\_get@{ephysics\_world\_linear\_slop\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_linear\_slop\_get()}{ephysics\_world\_linear\_slop\_get()}}
{\footnotesize\ttfamily EAPI double ephysics\+\_\+world\+\_\+linear\+\_\+slop\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get linear slop used by world. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Linear slop value used by {\bfseries{\href{http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_
Detection_and_Physics_FAQ\#How_do_most_physics_engines_solve_constraints.3F}{\texttt{ constraint solver}}}} of physics engine or 0 on failure.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga2a0c4f4c910574ebcaa26f001804e0bb}{ephysics\+\_\+world\+\_\+linear\+\_\+slop\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}\label{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_top\_autodel\_set@{ephysics\_world\_bodies\_outside\_top\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_top\_autodel\_set@{ephysics\_world\_bodies\_outside\_top\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_top\_autodel\_set()}{ephysics\_world\_bodies\_outside\_top\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the top. 

It\textquotesingle{}s useful when you don\textquotesingle{}t care about bodies leaving the render area set with \mbox{\hyperlink{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}{ephysics\+\_\+world\+\_\+render\+\_\+geometry\+\_\+set()}}, and don\textquotesingle{}t think they could / should return. So you can safely delete them and save resources.

Also, it\textquotesingle{}s useful if you have only a bottom border set with \mbox{\hyperlink{group__EPhysics__Body_ga58ecc44fc7febb980fe1857ef053f61f}{ephysics\+\_\+body\+\_\+top\+\_\+boundary\+\_\+add()}} and gravity set, and want to listen for \mbox{\hyperlink{group__EPhysics__World_gga0b0aff31f415be24679d4ab703674619ac553fa1d8ca19d2d17fe4cb7801c52ba}{EPHYSICS\+\_\+\+CALLBACK\+\_\+\+WORLD\+\_\+\+STOPPED}} event. If a body goes out of the render area, they will be acting by gravity and won\textquotesingle{}t collide to anything, so they could be moving forever and world would never stop. For this case, enabling autodel for left and right borders seems to be a good idea.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gae97bd69521f684f1258257e12161b697}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gae97bd69521f684f1258257e12161b697}\label{group__EPhysics__World_gae97bd69521f684f1258257e12161b697}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_top\_autodel\_get@{ephysics\_world\_bodies\_outside\_top\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_top\_autodel\_get@{ephysics\_world\_bodies\_outside\_top\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_top\_autodel\_get()}{ephysics\_world\_bodies\_outside\_top\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the top. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}\label{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_bottom\_autodel\_set@{ephysics\_world\_bodies\_outside\_bottom\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_bottom\_autodel\_set@{ephysics\_world\_bodies\_outside\_bottom\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_bottom\_autodel\_set()}{ephysics\_world\_bodies\_outside\_bottom\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the bottom. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_gaefcba9ab8214650ea77e786d572e554e}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gaefcba9ab8214650ea77e786d572e554e}\label{group__EPhysics__World_gaefcba9ab8214650ea77e786d572e554e}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_bottom\_autodel\_get@{ephysics\_world\_bodies\_outside\_bottom\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_bottom\_autodel\_get@{ephysics\_world\_bodies\_outside\_bottom\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_bottom\_autodel\_get()}{ephysics\_world\_bodies\_outside\_bottom\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the bottom. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}\label{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_right\_autodel\_set@{ephysics\_world\_bodies\_outside\_right\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_right\_autodel\_set@{ephysics\_world\_bodies\_outside\_right\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_right\_autodel\_set()}{ephysics\_world\_bodies\_outside\_right\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the right. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga441d22350368e7db4861d2863b2151cc}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga441d22350368e7db4861d2863b2151cc}\label{group__EPhysics__World_ga441d22350368e7db4861d2863b2151cc}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_right\_autodel\_get@{ephysics\_world\_bodies\_outside\_right\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_right\_autodel\_get@{ephysics\_world\_bodies\_outside\_right\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_right\_autodel\_get()}{ephysics\_world\_bodies\_outside\_right\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the right. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}\label{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_left\_autodel\_set@{ephysics\_world\_bodies\_outside\_left\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_left\_autodel\_set@{ephysics\_world\_bodies\_outside\_left\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_left\_autodel\_set()}{ephysics\_world\_bodies\_outside\_left\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the left. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}\label{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_left\_autodel\_get@{ephysics\_world\_bodies\_outside\_left\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_left\_autodel\_get@{ephysics\_world\_bodies\_outside\_left\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_left\_autodel\_get()}{ephysics\_world\_bodies\_outside\_left\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the left. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga0c9669966a4be20e9899952227edb460}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}\label{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_front\_autodel\_set@{ephysics\_world\_bodies\_outside\_front\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_front\_autodel\_set@{ephysics\_world\_bodies\_outside\_front\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_front\_autodel\_set()}{ephysics\_world\_bodies\_outside\_front\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the front. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga0d8bbc0e15ffb6c21dd7784faac4aa41}\label{group__EPhysics__World_ga0d8bbc0e15ffb6c21dd7784faac4aa41}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_front\_autodel\_get@{ephysics\_world\_bodies\_outside\_front\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_front\_autodel\_get@{ephysics\_world\_bodies\_outside\_front\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_front\_autodel\_get()}{ephysics\_world\_bodies\_outside\_front\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the front. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}\label{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_back\_autodel\_set@{ephysics\_world\_bodies\_outside\_back\_autodel\_set}}
\index{ephysics\_world\_bodies\_outside\_back\_autodel\_set@{ephysics\_world\_bodies\_outside\_back\_autodel\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_back\_autodel\_set()}{ephysics\_world\_bodies\_outside\_back\_autodel\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{autodel }\end{DoxyParamCaption})}



Set world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the back. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em autodel} & If {\ttfamily EINA\+\_\+\+TRUE} delete bodies when they are outside render area, otherwise, don\textquotesingle{}t delete.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab640a4c15eec53d9d851e09cd541a358}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+top\+\_\+autodel\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga546a59ecd1f39cd5abc70c4fa55c0fdf}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+left\+\_\+autodel\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga3fd8aadc141b6d5e45e473ac01f9ced6}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+bottom\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga798aea0ade40886b4fd71bf89bf3e4df}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+right\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_gac740b9f50af19504856f3074144754f8}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+front\+\_\+autodel\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga4895f508065ccf3f5aa4d71e8e5c3436}\label{group__EPhysics__World_ga4895f508065ccf3f5aa4d71e8e5c3436}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_bodies\_outside\_back\_autodel\_get@{ephysics\_world\_bodies\_outside\_back\_autodel\_get}}
\index{ephysics\_world\_bodies\_outside\_back\_autodel\_get@{ephysics\_world\_bodies\_outside\_back\_autodel\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_bodies\_outside\_back\_autodel\_get()}{ephysics\_world\_bodies\_outside\_back\_autodel\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get world autodeleting bodies mode when they\textquotesingle{}re outside of render area by the back. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if bodies will be deleted or {\ttfamily EINA\+\_\+\+FALSE} if they won\textquotesingle{}t, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga6806a81eea8e6f3f0da900b1e237425b}{ephysics\+\_\+world\+\_\+bodies\+\_\+outside\+\_\+back\+\_\+autodel\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gab605cbebcc53278db5138f68df074607}\label{group__EPhysics__World_gab605cbebcc53278db5138f68df074607}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_simulation\_set@{ephysics\_world\_simulation\_set}}
\index{ephysics\_world\_simulation\_set@{ephysics\_world\_simulation\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_simulation\_set()}{ephysics\_world\_simulation\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+simulation\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double}]{fixed\+\_\+time\+\_\+step,  }\item[{int}]{max\+\_\+sub\+\_\+steps }\end{DoxyParamCaption})}



Set world simulation\textquotesingle{}s fixed time step and max number of sub steps configuration. 

It\textquotesingle{}s important that time step is always less than {\ttfamily max\+\_\+sub\+\_\+steps} $\ast$ {\ttfamily fixed\+\_\+time\+\_\+step}, otherwise you are losing time. Mathematically\+:

time step \texorpdfstring{$<$}{<} {\ttfamily max\+\_\+sub\+\_\+steps} $\ast$ {\ttfamily fixed\+\_\+time\+\_\+step};

If you\textquotesingle{}re a using a very large time step \mbox{[}say, five times the size of the fixed internal time step\mbox{]}, then you must increase the number of max sub steps to compensate for this, otherwise your simulation is “losing” time.

The time step may vary. Simulation ticks are called by an animator, so, by default, time step is {\ttfamily 1/30} secs. If you\textquotesingle{}re using elementary, default FPS configuration is 60 fps, i.\+e. time step is {\ttfamily 1/60} secs. You can change that setting a different time with \mbox{\hyperlink{group__Ecore__Animator__Group_ga2c7aa7e621cd68562519066ad87a3fa1}{ecore\+\_\+animator\+\_\+frametime\+\_\+set()}}.

Also, keep in mind that if you\textquotesingle{}re using CPU intense calculations maybe this framerate won\textquotesingle{}t be achieved, so the time step will be bigger. You need to define what range of frames per seconds you need to support and configure {\ttfamily max\+\_\+sub\+\_\+steps} and {\ttfamily fixed\+\_\+time\+\_\+step} according to this.

By decreasing the size of {\ttfamily fixed\+\_\+time\+\_\+step}, you are increasing the “resolution” of the simulation.

If you are finding that your objects are moving very fast and escaping from your walls instead of colliding with them, then one way to help fix this problem is by decreasing {\ttfamily fixed\+\_\+time\+\_\+step}. If you do this, then you will need to increase {\ttfamily max\+\_\+sub\+\_\+steps} to ensure the equation listed above is still satisfied.

The issue with this is that each internal “tick” takes an amount of computation. More of them means your CPU will be spending more time on physics and therefore less time on other stuff. Say you want twice the resolution, you\textquotesingle{}ll need twice the {\ttfamily max\+\_\+sub\+\_\+steps}, which could chew up twice as much CPU for the same amount of simulation time.

When you pass {\ttfamily max\+\_\+sub\+\_\+steps} \texorpdfstring{$>$}{>} 1, it will interpolate movement for you. This means that if your {\ttfamily fixed\+\_\+time\+\_\+step} is 3 units, and you pass a time\+Step of 4, then it will do exactly one tick, and estimate the remaining movement by 1/3. This saves you having to do interpolation yourself, but keep in mind that max\+Sub\+Steps needs to be greater than 1.

By default {\ttfamily fixed\+\_\+time\+\_\+step} is 1/60 seconds and {\ttfamily max\+\_\+sub\+\_\+steps} is 3.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em fixed\+\_\+time\+\_\+step} & size of the internal simulation step, in seconds. \\
\hline
{\em max\+\_\+sub\+\_\+steps} & maximum number of steps that simulation is allowed to take at each simulation tick.\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
The unit used for time is seconds.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga12e0d7a91f40bdeb16e6e13e0f4f7661}{ephysics\+\_\+world\+\_\+simulation\+\_\+get()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga12e0d7a91f40bdeb16e6e13e0f4f7661}\label{group__EPhysics__World_ga12e0d7a91f40bdeb16e6e13e0f4f7661}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_simulation\_get@{ephysics\_world\_simulation\_get}}
\index{ephysics\_world\_simulation\_get@{ephysics\_world\_simulation\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_simulation\_get()}{ephysics\_world\_simulation\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+simulation\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{double $\ast$}]{fixed\+\_\+time\+\_\+step,  }\item[{int $\ast$}]{max\+\_\+sub\+\_\+steps }\end{DoxyParamCaption})}



Get world simulation\textquotesingle{}s fixed time step and max number of sub steps configuration. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em fixed\+\_\+time\+\_\+step} & size of the internal simulation step, in seconds. \\
\hline
{\em max\+\_\+sub\+\_\+steps} & maximum number of steps that simulation is allowed to take at each simulation tick.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gab605cbebcc53278db5138f68df074607}{ephysics\+\_\+world\+\_\+simulation\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}\label{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_point\_light\_position\_set@{ephysics\_world\_point\_light\_position\_set}}
\index{ephysics\_world\_point\_light\_position\_set@{ephysics\_world\_point\_light\_position\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_point\_light\_position\_set()}{ephysics\_world\_point\_light\_position\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{lx,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{ly,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}}}]{lz }\end{DoxyParamCaption})}



Set position of point light to be applied on the scene. 

It will perform lighting calculations on the evas map applied on evas objects associated with all the bodies to have light applied over.

This is used to apply lighting calculations (from a single light source) to a given object. The R, G and B values of each vertex will be modified to reflect the lighting based on the lixth point coordinates, the light color and the ambient color, and at what angle the map is facing the light source. A surface should have its points be declared in a clockwise fashion if the face is \char`\"{}facing\char`\"{} towards you (as opposed to away from you) as faces have a \char`\"{}logical\char`\"{} side for lighting.

More details can be found on \mbox{\hyperlink{group__Evas__Object__Group__Map_ga27cc3c160ce2273889026ce58e32e503}{evas\+\_\+map\+\_\+util\+\_\+3d\+\_\+lighting()}} documentation, since this function is used internally by EPhysics.

There are two ways of setting a body to receive lighting. One is to simple set all the bodies to be affected, with \mbox{\hyperlink{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}{ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+set()}}. The other, is to set each body individually, with \mbox{\hyperlink{group__EPhysics__Body_ga37dc0885fe9a3b3ec643edd42a9e7a6f}{ephysics\+\_\+body\+\_\+light\+\_\+set()}}.

By default, point light is set to position (0, 0, -\/200) and has white color (r=255, g=255, b=255). The ambient color is black (r=0, g=0, b=0). But no body will be affected. No change will be visible until some bodies are set to be enlightened.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em lx} & X coordinate in space of light point \\
\hline
{\em ly} & Y coordinate in space of light point \\
\hline
{\em lz} & Z coordinate in space of light point\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga202072d9ea09764d6127f0e70dc7ac03}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+get()}}. 

\mbox{\hyperlink{group__EPhysics__World_gad8a25241614ac01d37df87cc2668bf9e}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+set()}}. 

\mbox{\hyperlink{group__EPhysics__World_ga564febf03357030ed82748572f25ddb8}{ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gad8a25241614ac01d37df87cc2668bf9e}\label{group__EPhysics__World_gad8a25241614ac01d37df87cc2668bf9e}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_point\_light\_color\_set@{ephysics\_world\_point\_light\_color\_set}}
\index{ephysics\_world\_point\_light\_color\_set@{ephysics\_world\_point\_light\_color\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_point\_light\_color\_set()}{ephysics\_world\_point\_light\_color\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{int}]{lr,  }\item[{int}]{lg,  }\item[{int}]{lb }\end{DoxyParamCaption})}



Set color of point light to be applied on the scene. 

By default color of point light is r=255, g=255, b=255.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em lr} & light red value (0 -\/ 255) \\
\hline
{\em lg} & light green value (0 -\/ 255) \\
\hline
{\em lb} & light blue value (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga99817f08b591d802c99b274070d01bc1}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+get()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga564febf03357030ed82748572f25ddb8}\label{group__EPhysics__World_ga564febf03357030ed82748572f25ddb8}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_ambient\_light\_color\_set@{ephysics\_world\_ambient\_light\_color\_set}}
\index{ephysics\_world\_ambient\_light\_color\_set@{ephysics\_world\_ambient\_light\_color\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_ambient\_light\_color\_set()}{ephysics\_world\_ambient\_light\_color\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{int}]{ar,  }\item[{int}]{ag,  }\item[{int}]{ab }\end{DoxyParamCaption})}



Set color of the ambient light to be applied on the scene. 

By default, ambient color is set to r=0, g=0, b=0.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em ar} & ambient color red value (0 -\/ 255) \\
\hline
{\em ag} & ambient color green value (0 -\/ 255) \\
\hline
{\em ab} & ambient color blue value (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga982ae13814b01b6419dcf853db332e3d}{ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+get()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga202072d9ea09764d6127f0e70dc7ac03}\label{group__EPhysics__World_ga202072d9ea09764d6127f0e70dc7ac03}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_point\_light\_position\_get@{ephysics\_world\_point\_light\_position\_get}}
\index{ephysics\_world\_point\_light\_position\_get@{ephysics\_world\_point\_light\_position\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_point\_light\_position\_get()}{ephysics\_world\_point\_light\_position\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{lx,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{ly,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a2453e92182bad3b0e0d84e5aff433b07}{Evas\+\_\+\+Coord}} $\ast$}]{lz }\end{DoxyParamCaption})}



Get position of point light applied on the scene. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em lx} & X coordinate in space of light point \\
\hline
{\em ly} & Y coordinate in space of light point \\
\hline
{\em lz} & Z coordinate in space of light point\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga99817f08b591d802c99b274070d01bc1}\label{group__EPhysics__World_ga99817f08b591d802c99b274070d01bc1}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_point\_light\_color\_get@{ephysics\_world\_point\_light\_color\_get}}
\index{ephysics\_world\_point\_light\_color\_get@{ephysics\_world\_point\_light\_color\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_point\_light\_color\_get()}{ephysics\_world\_point\_light\_color\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{int $\ast$}]{lr,  }\item[{int $\ast$}]{lg,  }\item[{int $\ast$}]{lb }\end{DoxyParamCaption})}



Get color of point light applied on the scene. 

By default color of point light is r=255, g=255, b=255.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em lr} & light red value (0 -\/ 255) \\
\hline
{\em lg} & light green value (0 -\/ 255) \\
\hline
{\em lb} & light blue value (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_gad8a25241614ac01d37df87cc2668bf9e}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+color\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga982ae13814b01b6419dcf853db332e3d}\label{group__EPhysics__World_ga982ae13814b01b6419dcf853db332e3d}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_ambient\_light\_color\_get@{ephysics\_world\_ambient\_light\_color\_get}}
\index{ephysics\_world\_ambient\_light\_color\_get@{ephysics\_world\_ambient\_light\_color\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_ambient\_light\_color\_get()}{ephysics\_world\_ambient\_light\_color\_get()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{int $\ast$}]{ar,  }\item[{int $\ast$}]{ag,  }\item[{int $\ast$}]{ab }\end{DoxyParamCaption})}



Set color of the ambient light to be applied on the scene. 

By default, ambient color is set to r=0, g=0, b=0.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em ar} & ambient color red value (0 -\/ 255) \\
\hline
{\em ag} & ambient color green value (0 -\/ 255) \\
\hline
{\em ab} & ambient color blue value (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga564febf03357030ed82748572f25ddb8}{ephysics\+\_\+world\+\_\+ambient\+\_\+light\+\_\+color\+\_\+set()}}. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}\label{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_light\_all\_bodies\_set@{ephysics\_world\_light\_all\_bodies\_set}}
\index{ephysics\_world\_light\_all\_bodies\_set@{ephysics\_world\_light\_all\_bodies\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_light\_all\_bodies\_set()}{ephysics\_world\_light\_all\_bodies\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{enable }\end{DoxyParamCaption})}



Set if light should be applied over all the bodies. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em enable} & {\ttfamily EINA\+\_\+\+TRUE} if light should be obligatory applied over all the bodies, or {\ttfamily EINA\+\_\+\+FALSE} if it only should be applied on bodies with light property set.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gac798a9ec1348f4e3d0273287b00641d0}{ephysics\+\_\+world\+\_\+point\+\_\+light\+\_\+position\+\_\+set()}} for more details. 

\mbox{\hyperlink{group__EPhysics__World_ga3a94f91f0748f640140b8a4fa57dbea0}{ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+get()}}. 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{test_bouncing_ball_8c-example}{test\+\_\+bouncing\+\_\+ball.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__EPhysics__World_ga3a94f91f0748f640140b8a4fa57dbea0}\label{group__EPhysics__World_ga3a94f91f0748f640140b8a4fa57dbea0}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_light\_all\_bodies\_get@{ephysics\_world\_light\_all\_bodies\_get}}
\index{ephysics\_world\_light\_all\_bodies\_get@{ephysics\_world\_light\_all\_bodies\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_light\_all\_bodies\_get()}{ephysics\_world\_light\_all\_bodies\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get light setting regarding being applied over all the bodies. 


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if light will be obligatory applied over all the bodies, or {\ttfamily EINA\+\_\+\+FALSE} if it only will be applied on bodies with light property set, or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}{ephysics\+\_\+world\+\_\+light\+\_\+all\+\_\+bodies\+\_\+set()}} for details. 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_ga0f9ea8e4dff64ad639c3f4c0075fbec9}\label{group__EPhysics__World_ga0f9ea8e4dff64ad639c3f4c0075fbec9}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_stack\_enable\_set@{ephysics\_world\_stack\_enable\_set}}
\index{ephysics\_world\_stack\_enable\_set@{ephysics\_world\_stack\_enable\_set}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_stack\_enable\_set()}{ephysics\_world\_stack\_enable\_set()}}
{\footnotesize\ttfamily EAPI void ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{enabled }\end{DoxyParamCaption})}



Enable / disable stacking based on bodies z coordinates. 

Evas objects associated to bodies will be restacked when it\textquotesingle{}s enabled. So if a body A has coordinates x = 10, y = 10, z = 8 and a body B has coordinates x = 10, y = 10, z = 10, the evas object associated to B will be displayed below the evas object associated to A.

Evas objects will be restacked at each simulation tick. It\textquotesingle{}s enabled by default, and disabling it can lead to wrong scenarios when movement on Z axis is enabled or when cloths are used.

But disabling it can save performance, so if you won\textquotesingle{}t face these scenarios, it safe to disable it, since no evas object will be moved to be below or above others.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
{\em enabled} & If {\ttfamily EINA\+\_\+\+TRUE}, stacking based on Z coordinates will be enabled, otherwise it will be disabled.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_gaf6eccd13662674b879c91b24a1913bfc}{ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+get()}} 

\mbox{\hyperlink{group__EPhysics__Body_ga39cb9e95bbe1d097926a09365c501db3}{ephysics\+\_\+body\+\_\+evas\+\_\+object\+\_\+set()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__EPhysics__World_gaf6eccd13662674b879c91b24a1913bfc}\label{group__EPhysics__World_gaf6eccd13662674b879c91b24a1913bfc}} 
\index{EPhysics World@{EPhysics World}!ephysics\_world\_stack\_enable\_get@{ephysics\_world\_stack\_enable\_get}}
\index{ephysics\_world\_stack\_enable\_get@{ephysics\_world\_stack\_enable\_get}!EPhysics World@{EPhysics World}}
\doxysubsubsection{\texorpdfstring{ephysics\_world\_stack\_enable\_get()}{ephysics\_world\_stack\_enable\_get()}}
{\footnotesize\ttfamily EAPI \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\+\_\+\+World}} $\ast$}]{world }\end{DoxyParamCaption})}



Get stacking status of world. 

Stacking based on bodies z coordinates can be enabled or disabled.


\begin{DoxyParams}{Parameters}
{\em world} & The physics world. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily EINA\+\_\+\+TRUE} if it\textquotesingle{}s running, or {\ttfamily EINA\+\_\+\+FALSE} if it\textquotesingle{}s paused or on error.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__EPhysics__World_ga0f9ea8e4dff64ad639c3f4c0075fbec9}{ephysics\+\_\+world\+\_\+stack\+\_\+enable\+\_\+set()}} for more details. 
\end{DoxySeeAlso}
