DetPhysDocs日本語

detphys_kinematic.hmoving concave shapes (version 2)

FunctionDescription
detphys_kinematic_abi_versionThis header's version
detphys_kinematic_desc_defaultDefault table settings (split up to 4 times, 20 mm)
detphys_motion_desc_defaultDefault motion (FIXED, SMOOTH)
detphys_kinematic_createCreates a kinematic table (one per world)
detphys_kinematic_destroyDestroys it
detphys_kinematic_addCreates a kinematic body with a motion (with Box2D's angular speed limit lifted)
detphys_kinematic_bindGives an existing body a motion
detphys_kinematic_unbindRemoves a motion
detphys_kinematic_clearRemoves all motions (the session calls this before begin)
detphys_kinematic_updateSnaps to the current tick's pose and sets the velocity that reaches the next tick
detphys_kinematic_stepAdvances one tick (instead of detphys_world_step; splits fast ticks, then updates)
detphys_kinematic_pose_atThe motion function's pose (also between ticks, for interpolated drawing)
detphys_kinematic_checkWhether the world's values are bit-identical to the ones rebuilt from the functionsUsage: Desyncs › With moving concave shapes
detphys_kinematic_get_statsSplit counts and other statistics
detphys_kinematic_session_defaultDefault settings for passing a table to a session
StructDescription
detphys_kinematicA kinematic table (opaque)Usage: Concepts › Moving concave shapes
detphys_kinematic_descSplit settings (max_subticks 1–16, subtick_move_mm)
detphys_motion_descA motion (path DETPHYS_PATH_*, ease, position, spin, orbit, period, phase, points, callback)Usage: Concepts › Moving concave shapes
detphys_motion_pointA POINTS point (position, angle, ticks to the next point)
detphys_kinematic_poseA pose returned by a callback [µm, µrad]
detphys_kinematic_statsTable statistics
detphys_kinematic_sessionSettings for passing a table to a session (flags NO_PRE_UPDATE / NO_SPLIT)

Type: detphys_motion_fn (the shape of a CALLBACK motion function).

↑↓ to choose, Enter to open, Esc to close