libsf3
Loading...
Searching...
No Matches
Data Fields
sf3_physics_shape Struct Reference

#include <sf3_physics_model.h>

Data Fields

float transform [16]
 
uint8_t type
 

Detailed Description

A generic physics shape. You should look at the type field to determine the kind of shape, based on which a cast to a more precise shape can be done. Each shape is defined as being centred on 0,0,0 with X growing to the right, Y growing upwards, and Z growing "inwards" (right-handed rule). The shape is then transformed by the encoded transform matrix to place it into the coordinate system of the entire physics-model.

Definition at line 89 of file sf3_physics_model.h.

Field Documentation

◆ transform

float sf3_physics_shape::transform[16]

The affine transformation matrix of the shape stored as a 4x4 matrix in row-major order.

Definition at line 92 of file sf3_physics_model.h.

◆ type

uint8_t sf3_physics_shape::type

The type identifier of the physics shape. See the sf3_physics_shape_type enumeration.

Definition at line 95 of file sf3_physics_model.h.


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