naev 0.10.4
Data Fields
Solid Struct Reference

Represents a solid in the game. More...

#include <physics.h>

Data Fields

double mass
 
double dir
 
double dir_vel
 
vec2 vel
 
vec2 pos
 
double thrust
 
double speed_max
 
void(* update )(struct Solid_ *, double)
 

Detailed Description

Represents a solid in the game.

Definition at line 17 of file physics.h.

Field Documentation

◆ dir

double Solid::dir

Direction solid is facing in rad.

Definition at line 19 of file physics.h.

◆ dir_vel

double Solid::dir_vel

Velocity at which solid is rotating in rad/s.

Definition at line 20 of file physics.h.

◆ mass

double Solid::mass

Solid's mass.

Definition at line 18 of file physics.h.

◆ pos

vec2 Solid::pos

Position of the solid.

Definition at line 22 of file physics.h.

◆ speed_max

double Solid::speed_max

Maximum speed.

Definition at line 24 of file physics.h.

◆ thrust

double Solid::thrust

Relative X force, basically simplified for our thrust model.

Definition at line 23 of file physics.h.

◆ update

void(* Solid::update) (struct Solid_ *, double)

Update method.

Definition at line 25 of file physics.h.

◆ vel

vec2 Solid::vel

Velocity of the solid.

Definition at line 21 of file physics.h.


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