Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
physics.h File Reference
#include "gfx/vec.h"

Go to the source code of this file.

Classes

struct  Force
 
class  PhysicsSystem
 

Functions

float copysign (float x, float y)
 

Variables

static const float oocc = (float) 0.0000000000000000111265005605
 
static const float c = (float) 299792458.0
 
static const float co10 = (float) 29979245.8
 
const int forcemax = 64
 

Function Documentation

float copysign ( float  x,
float  y 
)

Definition at line 633 of file unit_generic.cpp.

References x.

Referenced by Unit::ClampThrust(), Unit::ClampTorque(), Unit::MaxThrust(), and Unit::MaxTorque().

634 {
635  if (y > 0)
636  return x;
637  else
638  return -x;
639 }

Variable Documentation

const float c = (float) 299792458.0
static

Definition at line 28 of file physics.h.

const float co10 = (float) 29979245.8
static

Definition at line 29 of file physics.h.

Referenced by PhysicsSystem::ApplyImpulses().

const float oocc = (float) 0.0000000000000000111265005605
static

Definition at line 27 of file physics.h.

Referenced by PhysicsSystem::ApplyImpulses().