1 #ifndef GF_PHYSICS_BODY_H     2 #define GF_PHYSICS_BODY_H     7 #include "PhysicsGeometry.h"    11 #include "Transform.h"    15 #ifndef DOXYGEN_SHOULD_SKIP_THIS   114       return m_linearVelocity;
   123       m_linearVelocity = velocity;
   133     void applyLinearImpulse(
Vector2f impulse);
   141       return m_acceleration;
   183     void setVelocityFromAngle();
   192     void updateTransform();
   216       m_restitution = restitution;
   225       return m_restitution;
   234       m_staticFriction = friction;
   243       return m_staticFriction;
   252       m_dynamicFriction = friction;
   261       return m_dynamicFriction;
   270       m_linearDamping = damping;
   279       return m_linearDamping;
   289     void setDensity(
float density);
   299       return m_inverseMass;
   324     float m_staticFriction;
   325     float m_dynamicFriction;
   326     float m_linearDamping;
   333 #ifndef DOXYGEN_SHOULD_SKIP_THIS   338 #endif // GF_PHYSICS_BODY_H Vector2f getLinearVelocity() const
Get the linear velocity of the body. 
Definition: PhysicsBody.h:113
 
The row has a dynamic layout. 
 
void setLinearDamping(float damping)
Set the linear damping of the body. 
Definition: PhysicsBody.h:269
 
float getInverseMass() const
Get the inverse mass of the body. 
Definition: PhysicsBody.h:298
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:66
 
Type getType() const
Get the type of the body. 
Definition: PhysicsBody.h:59
 
Vector2f getAcceleration() const
Get the acceleration of the body. 
Definition: PhysicsBody.h:140
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
A physics body. 
Definition: PhysicsBody.h:36
 
float getAngle() const
Get the angle of the body. 
Definition: PhysicsBody.h:158
 
Type
Type of body. 
Definition: PhysicsBody.h:41
 
float getDynamicFriction() const
Get the dynamic friction coefficient of the body. 
Definition: PhysicsBody.h:260
 
float getLinearDamping() const
Get the linear damping of the body. 
Definition: PhysicsBody.h:278
 
Static body with infinite mass. 
Definition: PhysicsBody.h:42
 
The namespace for gf classes. 
Definition: Action.h:34
 
float getStaticFriction() const
Get the static friction coefficient of the body. 
Definition: PhysicsBody.h:242
 
float angle(Direction direction)
Get an angle from a direction. 
 
void setRestitution(float restitution)
Set the restitution of the body of the body. 
Definition: PhysicsBody.h:215
 
Vector2f getPosition() const
Get the position of the body. 
Definition: PhysicsBody.h:90
 
Data about the collision between two objects. 
Definition: Collision.h:43
 
void setAngle(float angle)
Set the angle of the body. 
Definition: PhysicsBody.h:167
 
void turn(float arc)
Change the angle of the body. 
Definition: PhysicsBody.h:176
 
The geometry of a physics body. 
Definition: PhysicsGeometry.h:46
 
void setDynamicFriction(float friction)
Set the dynamic friction coefficient of the body. 
Definition: PhysicsBody.h:251
 
float getRestitution() const
Get the restitution of the body of the body. 
Definition: PhysicsBody.h:224
 
Dynamic bodies with finite mass. 
Definition: PhysicsBody.h:43
 
void setStaticFriction(float friction)
Set the static friction coefficient of the body. 
Definition: PhysicsBody.h:233
 
void setLinearVelocity(Vector2f velocity)
Set the linear velocity of the body. 
Definition: PhysicsBody.h:122