detphys_abi_version | このヘッダーのバージョン(DETPHYS_ABI_VERSION)。起動時に >= で比べる |
detphys_build_info | ビルドの情報(コンパイラ・CPU・浮動小数点の設定・SIMD)の 1 行。比較のログ用 |
detphys_world_desc_default | ワールドの設定の既定値(60 Hz・4 サブステップ・重力 (0, −10000) mm/s²) |
detphys_world_create | ワールドを作る(NULL なら既定値)。detphys_world_create_ex(desc, NULL) と同じ |
detphys_world_destroy | ワールドを壊す |
detphys_world_step | 1 tick 進める |
detphys_world_tick | 今の tick 番号(作った直後は 0) |
detphys_world_hash | 状態のハッシュ(FNV-1a 64。tick・ボディの数・各ボディの位置・回転・速度・角速度の生のビット)使い方: コンセプト › tick |
detphys_world_options_default | ワーカーなどの設定の既定値(ワーカー 1・コアのプール・spin 4000・base 4 個) |
detphys_world_create_ex | 設定とワーカーの設定を渡してワールドを作る |
detphys_world_get_options | 作った時のワーカーの設定を読む |
detphys_world_snapshot_size | 今の状態の snapshot の大きさを数える(dyn / full) |
detphys_world_snapshot_write | snapshot を呼び出し側のバッファに書く(dyn で base が無ければここで取る) |
detphys_world_snapshot_restore | snapshot の状態に戻す(tick・ボディの一覧も戻る。full を戻すと形のバージョンは必ず新しくなり、次の dyn で base を取り直す) |
detphys_snapshot_read_info | snapshot の画像の見出しを読む(ワールドは要らない) |
detphys_world_get_snapshot_stats | base の数・形のバージョン・書いた回数などの様子 |