\hypertarget{classIPhysicsComponent}{}\doxysection{IPhysics\+Component Class Reference}
\label{classIPhysicsComponent}\index{IPhysicsComponent@{IPhysicsComponent}}


{\ttfamily \#include $<$IPhysics\+Component.\+hpp$>$}



Inheritance diagram for IPhysics\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=202pt]{d1/d65/classIPhysicsComponent__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for IPhysics\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=307pt]{d4/d31/classIPhysicsComponent__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classIPhysicsComponent_ab4bee7d6211a8649c7089629eaccbb21}{IPhysics\+Component}} (\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$pos, \mbox{\hyperlink{structVec2D}{Vec2D}} dim)
\item 
\mbox{\hyperlink{classIPhysicsComponent_ae02e2c332f14e4206c21fc08902d5161}{$\sim$\+IPhysics\+Component}} ()
\item 
bool \mbox{\hyperlink{classIPhysicsComponent_aae80e0691898c61495f43a7bc2f0e494}{Is\+Colliding}} (\mbox{\hyperlink{classIPhysicsComponent}{IPhysics\+Component}} $\ast$other)
\item 
virtual void \mbox{\hyperlink{classIPhysicsComponent_a12248fc80967b165bc598e6f8bd3a8cd}{Apply\+Force}} (\mbox{\hyperlink{structVec2D}{Vec2D}} force)
\item 
virtual void \mbox{\hyperlink{classIPhysicsComponent_a0e5005877e7fc2b280c418515bb1954a}{Apply\+Acceleration}} (\mbox{\hyperlink{structVec2D}{Vec2D}} acceleration)
\item 
virtual void \mbox{\hyperlink{classIPhysicsComponent_ac1eb84fa1b67c0258a48fb1ac15f497d}{Apply\+Velocity}} ()
\item 
virtual void \mbox{\hyperlink{classIPhysicsComponent_aff905f4a966c951b7f56e716ab9f9347}{Set\+Velocity}} (\mbox{\hyperlink{structVec2D}{Vec2D}} vel)
\item 
virtual bool \mbox{\hyperlink{classIPhysicsComponent_aaf37980fe6dea6de4d49156b3c4ce998}{Is\+Kinematic}} ()
\item 
virtual bool \mbox{\hyperlink{classIPhysicsComponent_a4136b164031d8fa821316e1664264392}{Is\+Elastic}} ()
\item 
virtual bool \mbox{\hyperlink{classIPhysicsComponent_a41f11dca49e23ad9236b2ccbfe81e8f4}{Uses\+Gravity}} ()
\item 
\mbox{\hyperlink{structVec2D}{Vec2D}} \mbox{\hyperlink{classIPhysicsComponent_abfaa678eb1c7312e9bf098bc1473f794}{Get\+Position}} ()
\item 
\mbox{\hyperlink{structVec2D}{Vec2D}} \mbox{\hyperlink{classIPhysicsComponent_abb67c9f5741590c7ebcca1434175386a}{Get\+Dimensions}} ()
\item 
virtual \mbox{\hyperlink{structVec2D}{Vec2D}} \mbox{\hyperlink{classIPhysicsComponent_a476359cb97729525a9e476f6777c1536}{Get\+Velocity}} ()
\item 
virtual float \mbox{\hyperlink{classIPhysicsComponent_a5a88a9979998bcfe46ec45d4a6c4966b}{Get\+Mass}} ()
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions inherited from \mbox{\hyperlink{classComponent}{Component}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classComponent_a8775db6d1a2c1afc2e77cd3c8f39da6f}{Component}} ()
\item 
\mbox{\hyperlink{classComponent_ab8378fa275af98e568a7e91d33d867af}{$\sim$\+Component}} ()
\item 
virtual void \mbox{\hyperlink{classComponent_a9c764c2a5607ef52629458d361ebf16e}{Update}} (SDL\+\_\+\+Event e, int frame, std\+::vector$<$ std\+::string $>$ broadcast\+List)
\item 
virtual void \mbox{\hyperlink{classComponent_ab856bdb8c4357a080d7abcf99871a573}{Render}} (SDL\+\_\+\+Renderer $\ast$ren)
\item 
virtual void \mbox{\hyperlink{classComponent_a92af5bb942ea9633515a0c0e16a0bb8c}{Show\+Component\+Editor}} (bool $\ast$show\+Editor)
\item 
virtual bool \mbox{\hyperlink{classComponent_aed93a0ec70ebc71f34f02eb0a3ad4006}{Has\+Tag}} (Component\+Tag t)
\item 
virtual const char $\ast$ \mbox{\hyperlink{classComponent_a6ad359e7f57daa4ba249aaf5c88da052}{Component\+Type\+Name}} ()
\item 
void \mbox{\hyperlink{classComponent_aea8f0f460a62d86183020bd667b6cbf0}{Parse\+And\+Update\+Broadcast}} (std\+::vector$<$ std\+::string $>$ broadcast\+List)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classIPhysicsComponent_a793d76606057fb4dcf4ad9550fbbeca2}\label{classIPhysicsComponent_a793d76606057fb4dcf4ad9550fbbeca2} 
\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$ {\bfseries m\+\_\+position}
\item 
\mbox{\hyperlink{structVec2D}{Vec2D}} \mbox{\hyperlink{classIPhysicsComponent_ad22593592587dde0b325bd608b559aab}{dimensions}}
\item 
\Hypertarget{classIPhysicsComponent_a527df5bfe70078a0302906962494be1a}\label{classIPhysicsComponent_a527df5bfe70078a0302906962494be1a} 
std\+::vector$<$ Component\+Tag $>$ {\bfseries tags} = \{Component\+Tag\+::\+Physics\}
\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Attributes inherited from \mbox{\hyperlink{classComponent}{Component}}}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classComponent_ab9b45a6a11e943c86770a1b3e085c25c}\label{classComponent_ab9b45a6a11e943c86770a1b3e085c25c} 
std\+::vector$<$ Component\+Tag $>$ {\bfseries tags}
\item 
\Hypertarget{classComponent_a929d29b8cdb9447b70f5e7d990c7d0f0}\label{classComponent_a929d29b8cdb9447b70f5e7d990c7d0f0} 
std\+::vector$<$ std\+::string $>$ {\bfseries previous\+Broadcasts}
\item 
\Hypertarget{classComponent_a7d03b8c23a6fa95fd83f08ad88cd59ee}\label{classComponent_a7d03b8c23a6fa95fd83f08ad88cd59ee} 
std\+::vector$<$ std\+::string $>$ {\bfseries pending\+Broadcasts}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
An interface for all \doxylink{classComponent}{components } that will be interacting with the Physic\+Engine 

\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{classIPhysicsComponent_ab4bee7d6211a8649c7089629eaccbb21}\label{classIPhysicsComponent_ab4bee7d6211a8649c7089629eaccbb21} 
\index{IPhysicsComponent@{IPhysicsComponent}!IPhysicsComponent@{IPhysicsComponent}}
\index{IPhysicsComponent@{IPhysicsComponent}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{IPhysicsComponent()}{IPhysicsComponent()}}
{\footnotesize\ttfamily IPhysics\+Component\+::\+IPhysics\+Component (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$}]{pos,  }\item[{\mbox{\hyperlink{structVec2D}{Vec2D}}}]{dim }\end{DoxyParamCaption})}

Construct a new \doxylink{classIPhysicsComponent}{IPhysics\+Component} object


\begin{DoxyParams}{Parameters}
{\em pos} & the position of the \doxylink{classGameObject}{Game\+Object} the \doxylink{classComponent}{Component} is attached to \\
\hline
{\em dim} & the dimensions (width, height) of the \doxylink{classGameObject}{Game\+Object} the \doxylink{classComponent}{Component} is attached to \\
\hline
\end{DoxyParams}
\Hypertarget{classIPhysicsComponent_ae02e2c332f14e4206c21fc08902d5161}\label{classIPhysicsComponent_ae02e2c332f14e4206c21fc08902d5161} 
\index{IPhysicsComponent@{IPhysicsComponent}!````~IPhysicsComponent@{$\sim$IPhysicsComponent}}
\index{````~IPhysicsComponent@{$\sim$IPhysicsComponent}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{$\sim$IPhysicsComponent()}{\string~IPhysicsComponent()}}
{\footnotesize\ttfamily IPhysics\+Component\+::$\sim$\+IPhysics\+Component (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Destroy the \doxylink{classIPhysicsComponent}{IPhysics\+Component} object 

\doxysubsection{Member Function Documentation}
\Hypertarget{classIPhysicsComponent_a0e5005877e7fc2b280c418515bb1954a}\label{classIPhysicsComponent_a0e5005877e7fc2b280c418515bb1954a} 
\index{IPhysicsComponent@{IPhysicsComponent}!ApplyAcceleration@{ApplyAcceleration}}
\index{ApplyAcceleration@{ApplyAcceleration}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{ApplyAcceleration()}{ApplyAcceleration()}}
{\footnotesize\ttfamily void IPhysics\+Component\+::\+Apply\+Acceleration (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structVec2D}{Vec2D}}}]{acceleration }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Change the velocity of the \doxylink{classComponent}{Component}. Adds the acceleration value to the current velocity. 

Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_ae30aa822d90c6426fdbb96ec05a37d28}{Rigidbody\+Component}}.

\Hypertarget{classIPhysicsComponent_a12248fc80967b165bc598e6f8bd3a8cd}\label{classIPhysicsComponent_a12248fc80967b165bc598e6f8bd3a8cd} 
\index{IPhysicsComponent@{IPhysicsComponent}!ApplyForce@{ApplyForce}}
\index{ApplyForce@{ApplyForce}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{ApplyForce()}{ApplyForce()}}
{\footnotesize\ttfamily void IPhysics\+Component\+::\+Apply\+Force (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structVec2D}{Vec2D}}}]{force }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Apply a force to the \doxylink{classComponent}{Component}. Handles forces outside of collisions (such as from scripts).


\begin{DoxyParams}{Parameters}
{\em force} & the force to be applied to the \doxylink{classIPhysicsComponent}{IPhysics\+Component} \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\doxylink{classIPhysicsComponent_aff905f4a966c951b7f56e716ab9f9347}{Set\+Velocity()} to directly change the velocity 

\doxylink{classIPhysicsComponent_a0e5005877e7fc2b280c418515bb1954a}{Apply\+Acceleration()} to modify the acceleration 

\doxylink{classIPhysicsComponent_ac1eb84fa1b67c0258a48fb1ac15f497d}{Apply\+Velocity()} to finalize movement 
\end{DoxySeeAlso}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_a1883fe26d2113b4aa5e74f21c0b49eab}{Rigidbody\+Component}}.

\Hypertarget{classIPhysicsComponent_ac1eb84fa1b67c0258a48fb1ac15f497d}\label{classIPhysicsComponent_ac1eb84fa1b67c0258a48fb1ac15f497d} 
\index{IPhysicsComponent@{IPhysicsComponent}!ApplyVelocity@{ApplyVelocity}}
\index{ApplyVelocity@{ApplyVelocity}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{ApplyVelocity()}{ApplyVelocity()}}
{\footnotesize\ttfamily void IPhysics\+Component\+::\+Apply\+Velocity (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Moves the \doxylink{classComponent}{Component}. The \doxylink{classIPhysicsComponent}{IPhysics\+Component} will not move until this is called.

\begin{DoxySeeAlso}{See also}
\doxylink{classIPhysicsComponent_a12248fc80967b165bc598e6f8bd3a8cd}{Apply\+Force()} to use force to change the velocity 

\doxylink{classIPhysicsComponent_aff905f4a966c951b7f56e716ab9f9347}{Set\+Velocity()} to directly change the velocity 

\doxylink{classIPhysicsComponent_a0e5005877e7fc2b280c418515bb1954a}{Apply\+Acceleration()} to modify the acceleration 
\end{DoxySeeAlso}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_a7dafbd3c40121afeb2e30ad99d9be4ca}{Rigidbody\+Component}}.

\Hypertarget{classIPhysicsComponent_abb67c9f5741590c7ebcca1434175386a}\label{classIPhysicsComponent_abb67c9f5741590c7ebcca1434175386a} 
\index{IPhysicsComponent@{IPhysicsComponent}!GetDimensions@{GetDimensions}}
\index{GetDimensions@{GetDimensions}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{GetDimensions()}{GetDimensions()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structVec2D}{Vec2D}} IPhysics\+Component\+::\+Get\+Dimensions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Get the dimensions of the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.

\begin{DoxyReturn}{Returns}
the dimensions of the \doxylink{classComponent}{Component} 
\end{DoxyReturn}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_abb67c9f5741590c7ebcca1434175386a_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_a5a88a9979998bcfe46ec45d4a6c4966b}\label{classIPhysicsComponent_a5a88a9979998bcfe46ec45d4a6c4966b} 
\index{IPhysicsComponent@{IPhysicsComponent}!GetMass@{GetMass}}
\index{GetMass@{GetMass}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{GetMass()}{GetMass()}}
{\footnotesize\ttfamily float IPhysics\+Component\+::\+Get\+Mass (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Get the mass of the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.

\begin{DoxyReturn}{Returns}
the mass of the \doxylink{classComponent}{Component} 
\end{DoxyReturn}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_a96b7ca6de81de1347b2daf4f9c32a66b}{Rigidbody\+Component}}.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_a5a88a9979998bcfe46ec45d4a6c4966b_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_abfaa678eb1c7312e9bf098bc1473f794}\label{classIPhysicsComponent_abfaa678eb1c7312e9bf098bc1473f794} 
\index{IPhysicsComponent@{IPhysicsComponent}!GetPosition@{GetPosition}}
\index{GetPosition@{GetPosition}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{GetPosition()}{GetPosition()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structVec2D}{Vec2D}} IPhysics\+Component\+::\+Get\+Position (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Get the position of the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.

\begin{DoxyReturn}{Returns}
the position of the \doxylink{classComponent}{Component} 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{classTransformComponent}{Transform\+Component} 
\end{DoxySeeAlso}
Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_abfaa678eb1c7312e9bf098bc1473f794_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_abfaa678eb1c7312e9bf098bc1473f794_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_a476359cb97729525a9e476f6777c1536}\label{classIPhysicsComponent_a476359cb97729525a9e476f6777c1536} 
\index{IPhysicsComponent@{IPhysicsComponent}!GetVelocity@{GetVelocity}}
\index{GetVelocity@{GetVelocity}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{GetVelocity()}{GetVelocity()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structVec2D}{Vec2D}} IPhysics\+Component\+::\+Get\+Velocity (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Get the velocity of the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.

\begin{DoxyReturn}{Returns}
the velocity of the \doxylink{classComponent}{Component} 
\end{DoxyReturn}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_aca2cbab492d09175e0f2aa1e87f62f1f}{Rigidbody\+Component}}.

\Hypertarget{classIPhysicsComponent_aae80e0691898c61495f43a7bc2f0e494}\label{classIPhysicsComponent_aae80e0691898c61495f43a7bc2f0e494} 
\index{IPhysicsComponent@{IPhysicsComponent}!IsColliding@{IsColliding}}
\index{IsColliding@{IsColliding}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{IsColliding()}{IsColliding()}}
{\footnotesize\ttfamily bool IPhysics\+Component\+::\+Is\+Colliding (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classIPhysicsComponent}{IPhysics\+Component}} $\ast$}]{other }\end{DoxyParamCaption})}

Check for a collision with the given \doxylink{classIPhysicsComponent}{IPhysics\+Component}.


\begin{DoxyParams}{Parameters}
{\em other} & the \doxylink{classComponent}{Component} to check for collisions \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
whether other is colliding with this object 
\end{DoxyReturn}
Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_aae80e0691898c61495f43a7bc2f0e494_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_aae80e0691898c61495f43a7bc2f0e494_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_a4136b164031d8fa821316e1664264392}\label{classIPhysicsComponent_a4136b164031d8fa821316e1664264392} 
\index{IPhysicsComponent@{IPhysicsComponent}!IsElastic@{IsElastic}}
\index{IsElastic@{IsElastic}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{IsElastic()}{IsElastic()}}
{\footnotesize\ttfamily bool IPhysics\+Component\+::\+Is\+Elastic (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Get whether the \doxylink{classIPhysicsComponent}{IPhysics\+Component} bounces or just stops on collision.

\begin{DoxyReturn}{Returns}
whether the \doxylink{classIPhysicsComponent}{IPhysics\+Component} uses elastic collisions 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{classPhysicsEngine_a30d283b6067980e42765340dea6eb62a}{Physics\+Engine\+::\+Update()} 
\end{DoxySeeAlso}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_adc67765c449d8cde1c9dcdd279b97194}{Rigidbody\+Component}}.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_a4136b164031d8fa821316e1664264392_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_aaf37980fe6dea6de4d49156b3c4ce998}\label{classIPhysicsComponent_aaf37980fe6dea6de4d49156b3c4ce998} 
\index{IPhysicsComponent@{IPhysicsComponent}!IsKinematic@{IsKinematic}}
\index{IsKinematic@{IsKinematic}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{IsKinematic()}{IsKinematic()}}
{\footnotesize\ttfamily bool IPhysics\+Component\+::\+Is\+Kinematic (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Get whether the \doxylink{classIPhysicsComponent}{IPhysics\+Component} is kinematic. Allows for Colliders to only get collision data, without applying forces to other Components

\begin{DoxyReturn}{Returns}
whether the \doxylink{classIPhysicsComponent}{IPhysics\+Component} uses kinematic collisions 
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\doxylink{classPhysicsEngine_a30d283b6067980e42765340dea6eb62a}{Physics\+Engine\+::\+Update()} 
\end{DoxySeeAlso}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_a73b252b29fbb76a6354b0c56aebe36f9}{Rigidbody\+Component}}.

Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d15/classIPhysicsComponent_aaf37980fe6dea6de4d49156b3c4ce998_icgraph}
\end{center}
\end{figure}
\Hypertarget{classIPhysicsComponent_aff905f4a966c951b7f56e716ab9f9347}\label{classIPhysicsComponent_aff905f4a966c951b7f56e716ab9f9347} 
\index{IPhysicsComponent@{IPhysicsComponent}!SetVelocity@{SetVelocity}}
\index{SetVelocity@{SetVelocity}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{SetVelocity()}{SetVelocity()}}
{\footnotesize\ttfamily void IPhysics\+Component\+::\+Set\+Velocity (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structVec2D}{Vec2D}}}]{vel }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Set the velocity of the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.


\begin{DoxyParams}{Parameters}
{\em vel} & the new velocity \\
\hline
\end{DoxyParams}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_a5c6caca7d911fb61f00a2a35de0f62ef}{Rigidbody\+Component}}.

\Hypertarget{classIPhysicsComponent_a41f11dca49e23ad9236b2ccbfe81e8f4}\label{classIPhysicsComponent_a41f11dca49e23ad9236b2ccbfe81e8f4} 
\index{IPhysicsComponent@{IPhysicsComponent}!UsesGravity@{UsesGravity}}
\index{UsesGravity@{UsesGravity}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{UsesGravity()}{UsesGravity()}}
{\footnotesize\ttfamily bool IPhysics\+Component\+::\+Uses\+Gravity (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Get whether the \doxylink{classPhysicsEngine}{Physics\+Engine} will apply gravity forces to the \doxylink{classIPhysicsComponent}{IPhysics\+Component}.

\begin{DoxyReturn}{Returns}
whether the \doxylink{classIPhysicsComponent}{IPhysics\+Component} uses gravity 
\end{DoxyReturn}


Reimplemented in \mbox{\hyperlink{classRigidbodyComponent_aa4d0c27e47cef8b74058d70a5054eb31}{Rigidbody\+Component}}.



\doxysubsection{Member Data Documentation}
\Hypertarget{classIPhysicsComponent_ad22593592587dde0b325bd608b559aab}\label{classIPhysicsComponent_ad22593592587dde0b325bd608b559aab} 
\index{IPhysicsComponent@{IPhysicsComponent}!dimensions@{dimensions}}
\index{dimensions@{dimensions}!IPhysicsComponent@{IPhysicsComponent}}
\doxysubsubsection{\texorpdfstring{dimensions}{dimensions}}
{\footnotesize\ttfamily \mbox{\hyperlink{structVec2D}{Vec2D}} IPhysics\+Component\+::dimensions\hspace{0.3cm}{\ttfamily [protected]}}

pointer to the \doxylink{classTransformComponent}{Transform\+Component} used by the shared parent \doxylink{classGameObject}{Game\+Object} 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
include/IPhysics\+Component.\+hpp\item 
src/IPhysics\+Component.\+cpp\end{DoxyCompactItemize}
