5 Struct PHYSICS
gullradriel edited this page 2026-10-09 00:55:18 +02:00

PHYSICS

Module: PHYSICS: simple 3D movement simulation

structure of the physics of an object

#include "n_3d.h"

Public Attributes

Name
int type
optionnal type id
int sz
size
VECTOR3D speed
vx,vy,vz actual speed
VECTOR3D position
x,y,z actual position
VECTOR3D orientation
ax,ay,az actual rotation position
VECTOR3D gravity
gx , gy , gz gravity
time_t delta_t
last delta_t used
int can_jump
ability
VECTOR3D angular_speed
rvx,rvy,rvz actual angular speed
VECTOR3D angular_acceleration
rax,ray,raz actual angular acceleration
VECTOR3D acceleration
ax,ay,az actual acceleration

Public Attributes Documentation

variable type

int type;

optionnal type id

variable sz

int sz;

size

variable speed

VECTOR3D speed;

vx,vy,vz actual speed

variable position

VECTOR3D position;

x,y,z actual position

variable orientation

VECTOR3D orientation;

ax,ay,az actual rotation position

variable gravity

VECTOR3D gravity;

gx , gy , gz gravity

variable delta_t

time_t delta_t;

last delta_t used

variable can_jump

int can_jump;

ability

variable angular_speed

VECTOR3D angular_speed;

rvx,rvy,rvz actual angular speed

variable angular_acceleration

VECTOR3D angular_acceleration;

rax,ray,raz actual angular acceleration

variable acceleration

VECTOR3D acceleration;

ax,ay,az actual acceleration