samples.MagnetsElectric

Undocumented in source.

Members

Aliases

ForceData
alias ForceData = DataforForce
Undocumented in source.
Sing
alias Sing = ActorSingularity
Undocumented in source.
SingForceFunc
alias SingForceFunc = void function(DataforForce* data)
Undocumented in source.

Functions

make_mix
void make_mix(cpVect p, cpFloat ang, cpFloat mag, cpFloat chg)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

COU_MKS
enum COU_MKS;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
MAG_MKS
enum MAG_MKS;
Undocumented in source.
NCHG
enum NCHG;
Undocumented in source.
NMAG
enum NMAG;
Undocumented in source.
NMIX
enum NMIX;
Undocumented in source.
SINGMAX
enum SINGMAX;
Undocumented in source.
WIDTH
enum WIDTH;
Undocumented in source.

Static functions

ChargedBodyUpdatePositionVerlet
void ChargedBodyUpdatePositionVerlet(cpBody* _body, cpFloat dt)
Undocumented in source. Be warned that the author may not have intended to support it.
ChargedBodyUpdateVelocityVerlet
void ChargedBodyUpdateVelocityVerlet(cpBody* _body, cpVect gravity, cpFloat damping, cpFloat dt)
Undocumented in source. Be warned that the author may not have intended to support it.
CoulombForce
void CoulombForce(ForceData* data)
Undocumented in source. Be warned that the author may not have intended to support it.
FillForceData
void FillForceData(Sing* source, int inds, Sing* obs, int indo, ForceData* data)
Undocumented in source. Be warned that the author may not have intended to support it.
LRangeForceApply
void LRangeForceApply(cpBody* a, cpBody* b)
Undocumented in source. Be warned that the author may not have intended to support it.
MagDipoleForce
void MagDipoleForce(ForceData* data)
Undocumented in source. Be warned that the author may not have intended to support it.
MagDipoleTorque
void MagDipoleTorque(ForceData* data)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
init
cpSpace* init()
Undocumented in source. Be warned that the author may not have intended to support it.
make_charged
void make_charged(cpVect p, cpFloat chg)
Undocumented in source. Be warned that the author may not have intended to support it.
make_mag
void make_mag(cpVect p, cpFloat ang, cpFloat mag)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(int ticks)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

space
cpSpace* space;
Undocumented in source.

Structs

ActorSingularity
struct ActorSingularity
Undocumented in source.
DataforForce
struct DataforForce
Undocumented in source.

Variables

MagnetsElectric
chipmunkDemo MagnetsElectric;
Undocumented in source.

Meta