Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2Force Struct Reference

#include <d2Force.h>

Static Public Member Functions

static d2Vec2 GenerateDragForce (const d2Body &body, real k)
 
static d2Vec2 GenerateFrictionForce (const d2Body &body, real k)
 
static d2Vec2 GenerateSpringForce (const d2Body &body, d2Vec2 anchor, real restLength, real k)
 
static d2Vec2 GenerateGravitationalForce (const d2Body &a, const d2Body &b, real G, real minDistance, real maxDistance)
 

Member Function Documentation

◆ GenerateDragForce()

static d2Vec2 d2Force::GenerateDragForce ( const d2Body & body,
real k )
static

◆ GenerateFrictionForce()

static d2Vec2 d2Force::GenerateFrictionForce ( const d2Body & body,
real k )
static

◆ GenerateGravitationalForce()

static d2Vec2 d2Force::GenerateGravitationalForce ( const d2Body & a,
const d2Body & b,
real G,
real minDistance,
real maxDistance )
static

◆ GenerateSpringForce()

static d2Vec2 d2Force::GenerateSpringForce ( const d2Body & body,
d2Vec2 anchor,
real restLength,
real k )
static

The documentation for this struct was generated from the following file: