naev 0.12.6
Solid Struct Reference

Represents a solid in the game. More...

#include <physics.h>

Collaboration diagram for Solid:

Data Fields

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

Detailed Description

Represents a solid in the game.

Definition at line 44 of file physics.h.

Field Documentation

◆ accel

double Solid::accel

Relative X acceleration, basically simplified for our model.

Definition at line 51 of file physics.h.

◆ dir

double Solid::dir

Direction solid is facing in rad.

Definition at line 46 of file physics.h.

◆ dir_vel

double Solid::dir_vel

Velocity at which solid is rotating in rad/s.

Definition at line 47 of file physics.h.

◆ mass

double Solid::mass

Solid's mass.

Definition at line 45 of file physics.h.

◆ pos

vec2 Solid::pos

Position of the solid.

Definition at line 49 of file physics.h.

◆ pre

vec2 Solid::pre

Previous position of the solid. For collisions.

Definition at line 50 of file physics.h.

◆ speed_max

double Solid::speed_max

Maximum speed.

Definition at line 53 of file physics.h.

◆ update

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

Update method.

Definition at line 54 of file physics.h.

◆ vel

vec2 Solid::vel

Velocity of the solid.

Definition at line 48 of file physics.h.


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