Fireset
Loading...
Searching...
No Matches
FsBody Struct Reference

Physics body. More...

#include <physics.h>

Collaboration diagram for FsBody:

Public Attributes

FsBodyType type
FsVec2 position
FsVec2 velocity
FsVec2 size

Detailed Description

Physics body.

Represents a physical object inside a physics space. Stores position, velocity, size and body type.

Member Data Documentation

◆ position

FsVec2 FsBody::position

World position (center-based)

◆ size

FsVec2 FsBody::size

Size of the body (width, height)

◆ type

FsBodyType FsBody::type

Body shape/type

◆ velocity

FsVec2 FsBody::velocity

Linear velocity


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