@series-inc/rundot-syncplay 6.0.0-rc.2 → 6.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -0
- package/core/deterministic-math.d.ts +75 -1
- package/core/native/instance_ledger.hpp +1095 -0
- package/core/native/legacy_checkpoint_ids.hpp +107 -0
- package/core/native/physics/abi.cpp +39 -211
- package/core/native/physics/abi.hpp +2 -6
- package/core/native/physics/articulation.cpp +1434 -0
- package/core/native/physics/articulation.hpp +279 -0
- package/core/native/physics/buoyancy.cpp +1588 -0
- package/core/native/physics/buoyancy.hpp +254 -0
- package/core/native/physics/capsule_triangle.cpp +168 -0
- package/core/native/physics/capsule_triangle.hpp +40 -0
- package/core/native/physics/capsule_triangle_native.inc +291 -0
- package/core/native/physics/certified_sum.hpp +218 -0
- package/core/native/physics/character.cpp +638 -0
- package/core/native/physics/character.hpp +169 -0
- package/core/native/physics/checkpoint_schema.hpp +379 -0
- package/core/native/physics/cloth.cpp +1401 -0
- package/core/native/physics/cloth.hpp +357 -0
- package/core/native/physics/constraint_rows.cpp +363 -2
- package/core/native/physics/constraint_rows.hpp +72 -1
- package/core/native/physics/deformable_query.cpp +1630 -0
- package/core/native/physics/deformable_query.hpp +578 -0
- package/core/native/physics/distance.cpp +1166 -0
- package/core/native/physics/distance.hpp +151 -0
- package/core/native/physics/exact/exact-applied.cpp +101 -0
- package/core/native/physics/exact/exact-applied.hpp +112 -0
- package/core/native/physics/exact/exact-dyadic.cpp +691 -0
- package/core/native/physics/exact/exact-dyadic.hpp +58 -0
- package/core/native/physics/exact/exact-operation.hpp +51 -0
- package/core/native/physics/exact/word-core.hpp +262 -0
- package/core/native/physics/extended_abi.cpp +1242 -0
- package/core/native/physics/extended_abi.hpp +355 -0
- package/core/native/physics/extended_abi_characters.cpp +261 -0
- package/core/native/physics/extended_abi_characters.hpp +434 -0
- package/core/native/physics/extended_abi_core_features.cpp +713 -0
- package/core/native/physics/extended_abi_core_features.hpp +226 -0
- package/core/native/physics/extended_abi_deformables.cpp +448 -0
- package/core/native/physics/extended_abi_deformables.hpp +867 -0
- package/core/native/physics/extended_abi_vehicles.cpp +411 -0
- package/core/native/physics/extended_abi_vehicles.hpp +222 -0
- package/core/native/physics/fracture.cpp +1981 -0
- package/core/native/physics/fracture.hpp +460 -0
- package/core/native/physics/gear.cpp +563 -0
- package/core/native/physics/gear.hpp +158 -0
- package/core/native/physics/geometry_memory.hpp +476 -0
- package/core/native/physics/geometry_store.cpp +547 -0
- package/core/native/physics/geometry_store.hpp +134 -0
- package/core/native/physics/lag_compensation.cpp +1626 -0
- package/core/native/physics/lag_compensation.hpp +405 -0
- package/core/native/physics/mass_properties.cpp +449 -0
- package/core/native/physics/mass_properties.hpp +23 -0
- package/core/native/physics/material_pose.hpp +988 -0
- package/core/native/physics/particles.cpp +1065 -0
- package/core/native/physics/particles.hpp +261 -0
- package/core/native/physics/path_joint.cpp +781 -0
- package/core/native/physics/path_joint.hpp +154 -0
- package/core/native/physics/physics.cpp +13043 -1065
- package/core/native/physics/physics.hpp +184 -8
- package/core/native/physics/planar_deformable.cpp +2433 -0
- package/core/native/physics/planar_deformable.hpp +889 -0
- package/core/native/physics/platformer_2d.cpp +1353 -0
- package/core/native/physics/platformer_2d.hpp +340 -0
- package/core/native/physics/powered_ragdoll.cpp +1100 -0
- package/core/native/physics/powered_ragdoll.hpp +279 -0
- package/core/native/physics/powertrain.cpp +586 -0
- package/core/native/physics/powertrain.hpp +180 -0
- package/core/native/physics/pulley.cpp +311 -0
- package/core/native/physics/pulley.hpp +121 -0
- package/core/native/physics/ragdoll.cpp +586 -0
- package/core/native/physics/ragdoll.hpp +221 -0
- package/core/native/physics/rope.cpp +692 -0
- package/core/native/physics/rope.hpp +215 -0
- package/core/native/physics/rounded_convex.cpp +1229 -0
- package/core/native/physics/rounded_convex.hpp +287 -0
- package/core/native/physics/sdf_geometry.cpp +1821 -0
- package/core/native/physics/sdf_geometry.hpp +474 -0
- package/core/native/physics/soft_body.cpp +1449 -0
- package/core/native/physics/soft_body.hpp +328 -0
- package/core/native/physics/soft_collision.cpp +1862 -0
- package/core/native/physics/soft_collision.hpp +561 -0
- package/core/native/physics/surface_velocity.cpp +366 -0
- package/core/native/physics/surface_velocity.hpp +243 -0
- package/core/native/physics/topology.cpp +357 -39
- package/core/native/physics/topology.hpp +97 -6
- package/core/native/physics/tracks.cpp +1179 -0
- package/core/native/physics/tracks.hpp +404 -0
- package/core/native/physics/vehicle.cpp +629 -0
- package/core/native/physics/vehicle.hpp +191 -0
- package/core/native/physics/voxel_cooking.cpp +1929 -0
- package/core/native/physics/voxel_cooking.hpp +395 -0
- package/core/native/physics/world.cpp +5290 -854
- package/core/native/physics/world.hpp +796 -24
- package/core/native/physics/world_abi.cpp +3840 -306
- package/core/native/physics/world_abi.hpp +530 -10
- package/core/native/physics/world_digest_visitor.hpp +277 -0
- package/core/native/physics/world_strong_digest.hpp +557 -0
- package/core/native/physics2d/ccd.cpp +1302 -0
- package/core/native/physics2d/ccd.hpp +141 -0
- package/core/native/physics2d/checkpoint_memory.hpp +349 -0
- package/core/native/physics2d/clock_primitives.hpp +138 -0
- package/core/native/physics2d/commands.cpp +174 -28
- package/core/native/physics2d/commands.hpp +3 -1
- package/core/native/physics2d/compound.cpp +581 -0
- package/core/native/physics2d/compound.hpp +248 -0
- package/core/native/physics2d/contour.cpp +325 -0
- package/core/native/physics2d/contour.hpp +143 -0
- package/core/native/physics2d/frame_scope.hpp +124 -0
- package/core/native/physics2d/joint_phases.hpp +93 -0
- package/core/native/physics2d/joints.cpp +587 -150
- package/core/native/physics2d/joints.hpp +5 -0
- package/core/native/physics2d/memory_private.hpp +125 -0
- package/core/native/physics2d/owned_abi.cpp +1354 -879
- package/core/native/physics2d/owned_abi.hpp +190 -52
- package/core/native/physics2d/phase_test_hooks.hpp +17 -0
- package/core/native/physics2d/physics2d.cpp +2073 -120
- package/core/native/physics2d/physics2d.hpp +154 -2
- package/core/native/physics2d/queries.cpp +1055 -79
- package/core/native/physics2d/queries.hpp +71 -5
- package/core/native/physics2d/world.cpp +1313 -353
- package/core/native/physics2d/world.hpp +124 -13
- package/core/native/sha256/sha256_compress_unsigned.hpp +68 -0
- package/core/native/sha256/sha256_fips_constants.hpp +24 -0
- package/core/native/sha256/sha256_length.hpp +56 -0
- package/core/native/sha256/sha256_memo.hpp +48 -0
- package/core/native/sha256/sha256_sink.hpp +234 -0
- package/core/physics2d-owned.d.ts +466 -126
- package/core/runtime.d.ts +192 -19
- package/core/scripts/build-native.mjs +34 -0
- package/core/scripts/build-wasm-physics.mjs +272 -23
- package/core/scripts/extended-physics-profile.mjs +634 -0
- package/core/scripts/generate-physics2d-vectors.mjs +59 -0
- package/core/src/kinetix-deterministic-math.d.ts +2 -0
- package/core/src/kinetix-deterministic-math.mjs +513 -27
- package/core/src/kinetix-owned-runtime-adapter.mjs +788 -0
- package/core/src/kinetix-runtime-adapter-utils.mjs +54 -6
- package/core/src/kinetix-runtime-contract.mjs +55 -9
- package/core/src/kinetix-runtime-identity.mjs +12 -1
- package/core/src/kinetix-session-config.mjs +7 -2
- package/core/src/kinetix-state-report.mjs +36 -0
- package/core/src/physics/abi-constants.mjs +5 -4
- package/core/src/physics/articulation.d.mts +194 -0
- package/core/src/physics/articulation.mjs +1141 -0
- package/core/src/physics/buoyancy.d.mts +143 -0
- package/core/src/physics/buoyancy.mjs +268 -0
- package/core/src/physics/cloth.d.mts +314 -0
- package/core/src/physics/cloth.mjs +1156 -0
- package/core/src/physics/deformable-query.d.mts +217 -0
- package/core/src/physics/deformable-query.mjs +1412 -0
- package/core/src/physics/distance.d.mts +160 -0
- package/core/src/physics/distance.mjs +175 -0
- package/core/src/physics/extended-wasm-instance.d.mts +5 -0
- package/core/src/physics/extended-wasm-instance.mjs +48 -0
- package/core/src/physics/feature-api.d.mts +74 -0
- package/core/src/physics/feature-api.mjs +98 -0
- package/core/src/physics/fracture.d.mts +133 -0
- package/core/src/physics/fracture.mjs +1324 -0
- package/core/src/physics/gear.d.mts +585 -0
- package/core/src/physics/gear.mjs +955 -0
- package/core/src/physics/lag-compensation.d.mts +101 -0
- package/core/src/physics/lag-compensation.mjs +1100 -0
- package/core/src/physics/mass-properties.d.mts +114 -0
- package/core/src/physics/mass-properties.mjs +137 -468
- package/core/src/physics/particles.d.mts +177 -0
- package/core/src/physics/particles.mjs +758 -0
- package/core/src/physics/path-joint.d.mts +171 -0
- package/core/src/physics/path-joint.mjs +1231 -0
- package/core/src/physics/physics-extended-wasm-module.generated.mjs +13 -0
- package/core/src/physics/physics-profile-wasm-module.generated.mjs +48 -0
- package/core/src/physics/physics-wasm-module.generated.mjs +34 -5
- package/core/src/physics/powered-ragdoll.d.mts +188 -0
- package/core/src/physics/powered-ragdoll.mjs +1043 -0
- package/core/src/physics/powertrain.d.mts +260 -0
- package/core/src/physics/powertrain.mjs +621 -0
- package/core/src/physics/pulley.d.mts +98 -0
- package/core/src/physics/pulley.mjs +686 -0
- package/core/src/physics/ragdoll.d.mts +289 -0
- package/core/src/physics/ragdoll.mjs +1323 -0
- package/core/src/physics/rope.d.mts +241 -0
- package/core/src/physics/rope.mjs +319 -0
- package/core/src/physics/rounded-convex.d.mts +328 -0
- package/core/src/physics/rounded-convex.mjs +1404 -0
- package/core/src/physics/sdf-geometry.d.mts +117 -0
- package/core/src/physics/sdf-geometry.mjs +1204 -0
- package/core/src/physics/soft-body.d.mts +144 -0
- package/core/src/physics/soft-body.mjs +1285 -0
- package/core/src/physics/soft-collision.d.mts +651 -0
- package/core/src/physics/soft-collision.mjs +1883 -0
- package/core/src/physics/surface-velocity.d.mts +156 -0
- package/core/src/physics/surface-velocity.mjs +722 -0
- package/core/src/physics/tracks.d.mts +411 -0
- package/core/src/physics/tracks.mjs +1074 -0
- package/core/src/physics/vehicle.d.mts +3 -0
- package/core/src/physics/vehicle.mjs +172 -0
- package/core/src/physics/voxel-cooking.d.mts +219 -0
- package/core/src/physics/voxel-cooking.mjs +1499 -0
- package/core/src/physics/voxel-swept-quad.mjs +110 -0
- package/core/src/physics/wasm-instance.mjs +160 -23
- package/core/src/physics/world.d.mts +62 -0
- package/core/src/physics/world.mjs +1947 -152
- package/core/src/physics2d/body-state.mjs +218 -15
- package/core/src/physics2d/collision.d.mts +52 -0
- package/core/src/physics2d/collision.mjs +234 -0
- package/core/src/physics2d/compound.mjs +454 -0
- package/core/src/physics2d/contour-state.mjs +771 -0
- package/core/src/physics2d/feature-api.d.mts +211 -0
- package/core/src/physics2d/feature-api.mjs +3 -0
- package/core/src/physics2d/fluid-state.mjs +145 -0
- package/core/src/physics2d/joint-state.mjs +1 -1
- package/core/src/physics2d/owned-queries.mjs +3 -1
- package/core/src/physics2d/owned-transport.mjs +268 -122
- package/core/src/physics2d/owned-world.mjs +353 -230
- package/core/src/physics2d/particle-fluid.d.mts +152 -0
- package/core/src/physics2d/particle-fluid.mjs +233 -0
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +27 -10
- package/core/src/physics2d/query-codec.mjs +61 -13
- package/core/src/physics2d/submerged-geometry.d.mts +51 -0
- package/core/src/physics2d/submerged-geometry.mjs +186 -0
- package/core/src/runtime.mjs +23 -0
- package/core/src/shared/bytes.d.mts +2 -0
- package/core/src/shared/bytes.mjs +33 -0
- package/core/src/shared/sha256.d.mts +3 -0
- package/core/src/shared/sha256.mjs +72 -22
- package/core/units.d.ts +50 -0
- package/core/world.d.ts +253 -5
- package/dist/authority-room.d.ts +9 -0
- package/dist/authority-room.js +45 -16
- package/dist/browser.d.ts +6 -5
- package/dist/browser.js +4 -3
- package/dist/cadence.d.ts +7 -0
- package/dist/cadence.js +19 -0
- package/dist/canonical.d.ts +1 -0
- package/dist/canonical.js +3 -0
- package/dist/checksum-policy.d.ts +10 -0
- package/dist/checksum-policy.js +14 -0
- package/dist/collider-cooking-hull.d.ts +18 -0
- package/dist/collider-cooking-hull.js +248 -0
- package/dist/collider-cooking.d.ts +140 -0
- package/dist/collider-cooking.js +794 -0
- package/dist/compat/v5.d.ts +121 -0
- package/dist/compat/v5.js +479 -0
- package/dist/creator.d.ts +7 -6
- package/dist/creator.js +4 -3
- package/dist/game-byte-section.d.ts +36 -0
- package/dist/game-byte-section.js +350 -0
- package/dist/index.d.ts +13 -6
- package/dist/index.js +9 -4
- package/dist/instant-replay.d.ts +27 -2
- package/dist/instant-replay.js +91 -16
- package/dist/lag-compensation3d.js +11 -10
- package/dist/match-log.d.ts +21 -4
- package/dist/match-log.js +92 -9
- package/dist/math.d.ts +2 -0
- package/dist/math.js +1 -0
- package/dist/modules/character-3d.d.ts +16 -1
- package/dist/modules/character-3d.js +42 -5
- package/dist/modules/combat.js +6 -5
- package/dist/movement3d-revision1.d.ts +2 -0
- package/dist/movement3d-revision1.js +973 -0
- package/dist/movement3d.d.ts +53 -3
- package/dist/movement3d.js +917 -247
- package/dist/networked-client.d.ts +15 -0
- package/dist/networked-client.js +378 -105
- package/dist/node.d.ts +3 -2
- package/dist/node.js +2 -1
- package/dist/physics/2d.d.ts +38 -4
- package/dist/physics/2d.js +57 -36
- package/dist/physics/3d.d.ts +755 -111
- package/dist/physics/3d.js +2355 -158
- package/dist/physics/edit-result-graph.d.ts +36 -0
- package/dist/physics/edit-result-graph.js +141 -0
- package/dist/physics/game-codec3d.d.ts +41 -0
- package/dist/physics/game-codec3d.js +544 -0
- package/dist/physics/installed-checkpoint3d.d.ts +13 -0
- package/dist/physics/installed-checkpoint3d.js +120 -0
- package/dist/physics/installed-runtime3d.d.ts +51 -0
- package/dist/physics/installed-runtime3d.js +372 -0
- package/dist/physics/installed-state-commitment3d.d.ts +2 -0
- package/dist/physics/installed-state-commitment3d.js +24 -0
- package/dist/physics/units.d.ts +38 -0
- package/dist/physics/units.js +56 -0
- package/dist/physics/vehicle-state3d.d.ts +93 -0
- package/dist/physics/vehicle-state3d.js +1191 -0
- package/dist/physics/voxel-body-state.d.ts +61 -0
- package/dist/physics/voxel-body-state.js +410 -0
- package/dist/r3f-render-adapter.d.ts +59 -1
- package/dist/r3f-render-adapter.js +137 -2
- package/dist/replay.d.ts +13 -0
- package/dist/replay.js +95 -70
- package/dist/run-room-transport.js +5 -1
- package/dist/runner.d.ts +17 -2
- package/dist/runner.js +472 -84
- package/dist/runtime-cleanup.d.ts +54 -0
- package/dist/runtime-cleanup.js +266 -0
- package/dist/runtime-lease.d.ts +11 -1
- package/dist/runtime-lease.js +23 -10
- package/dist/runtime-room-metadata.d.ts +2 -8
- package/dist/runtime-room-metadata.js +11 -14
- package/dist/runtime-session.d.ts +8 -0
- package/dist/runtime-session.js +222 -58
- package/dist/schema-codegen.js +3 -0
- package/dist/schema-dsl-binary.d.ts +10 -4
- package/dist/schema-dsl-binary.js +375 -76
- package/dist/scratch-pool.d.ts +32 -0
- package/dist/scratch-pool.js +60 -0
- package/dist/sdk-session.d.ts +1 -0
- package/dist/sdk-session.js +4 -0
- package/dist/secret-config.js +2 -60
- package/dist/secret-crypto.js +70 -36
- package/dist/session-snapshot.d.ts +15 -4
- package/dist/session-snapshot.js +35 -33
- package/dist/session-wire.js +14 -22
- package/dist/sparse-set.d.ts +1 -0
- package/dist/sparse-set.js +22 -0
- package/dist/spatial/spatial-grid-3d.d.ts +41 -0
- package/dist/spatial/spatial-grid-3d.js +115 -0
- package/dist/synctest.d.ts +9 -0
- package/dist/synctest.js +106 -17
- package/dist/testing-network.d.ts +2 -0
- package/dist/testing-network.js +122 -18
- package/dist/testing.d.ts +27 -6
- package/dist/testing.js +297 -56
- package/dist/tools/index.d.ts +3 -2
- package/dist/tools/index.js +3 -2
- package/dist/tools/module-certification.d.ts +6 -0
- package/dist/tools/module-certification.js +26 -2
- package/package.json +18 -5
- package/core/scripts/run-box3d-benchmark.mjs +0 -350
- package/core/src/physics/index.mjs +0 -3169
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <cstdint>
|
|
4
|
+
|
|
5
|
+
extern "C" {
|
|
6
|
+
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Core Features Module ABI Version
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
std::uint32_t rundot_kinetix_ext_core_features_abi_version();
|
|
11
|
+
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
// Kinematic Character Controller (K01)
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
std::uint32_t rundot_kinetix_ext_character_abi_version();
|
|
16
|
+
std::uint32_t rundot_kinetix_ext_character_config_stride();
|
|
17
|
+
std::uint32_t rundot_kinetix_ext_character_config_size();
|
|
18
|
+
std::uint32_t rundot_kinetix_ext_character_input_stride();
|
|
19
|
+
std::uint32_t rundot_kinetix_ext_character_input_size();
|
|
20
|
+
std::uint32_t rundot_kinetix_ext_character_state_stride();
|
|
21
|
+
std::uint32_t rundot_kinetix_ext_character_state_size();
|
|
22
|
+
std::uint32_t rundot_kinetix_ext_character_hit_stride();
|
|
23
|
+
std::uint32_t rundot_kinetix_ext_character_hit_size();
|
|
24
|
+
std::uint32_t rundot_kinetix_ext_character_shape_stride();
|
|
25
|
+
std::uint32_t rundot_kinetix_ext_character_shape_size();
|
|
26
|
+
std::uint32_t rundot_kinetix_ext_character_stride();
|
|
27
|
+
std::uint32_t rundot_kinetix_ext_character_size();
|
|
28
|
+
|
|
29
|
+
std::int32_t rundot_kinetix_ext_character_step(
|
|
30
|
+
const double* bodyData,
|
|
31
|
+
std::uint32_t bodyCount,
|
|
32
|
+
const double* inputData,
|
|
33
|
+
const double* configData,
|
|
34
|
+
double* stateData);
|
|
35
|
+
|
|
36
|
+
std::int32_t rundot_kinetix_ext_character_reset(double* stateData);
|
|
37
|
+
std::int32_t rundot_kinetix_ext_character_init_config(double* configData);
|
|
38
|
+
std::int32_t rundot_kinetix_ext_character_init_state(double* stateData);
|
|
39
|
+
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// Shape Distance and Closest Point Queries (Q05)
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
std::uint32_t rundot_kinetix_ext_distance_abi_version();
|
|
44
|
+
std::uint32_t rundot_kinetix_ext_distance_input_stride();
|
|
45
|
+
std::uint32_t rundot_kinetix_ext_distance_input_size();
|
|
46
|
+
std::uint32_t rundot_kinetix_ext_distance_options_stride();
|
|
47
|
+
std::uint32_t rundot_kinetix_ext_distance_options_size();
|
|
48
|
+
std::uint32_t rundot_kinetix_ext_distance_output_stride();
|
|
49
|
+
std::uint32_t rundot_kinetix_ext_distance_output_size();
|
|
50
|
+
std::uint32_t rundot_kinetix_ext_distance_result_stride();
|
|
51
|
+
std::uint32_t rundot_kinetix_ext_distance_result_size();
|
|
52
|
+
std::uint32_t rundot_kinetix_ext_distance_shape_stride();
|
|
53
|
+
std::uint32_t rundot_kinetix_ext_distance_shape_size();
|
|
54
|
+
std::uint32_t rundot_kinetix_ext_distance_stride();
|
|
55
|
+
std::uint32_t rundot_kinetix_ext_distance_size();
|
|
56
|
+
|
|
57
|
+
std::int32_t rundot_kinetix_ext_distance_shape_distance(
|
|
58
|
+
const double* shapeAData,
|
|
59
|
+
const double* shapeBData,
|
|
60
|
+
const double* geometryData,
|
|
61
|
+
std::uint32_t geometryCount,
|
|
62
|
+
const double* optionsData,
|
|
63
|
+
double* outputData);
|
|
64
|
+
|
|
65
|
+
std::int32_t rundot_kinetix_ext_distance_point_distance(
|
|
66
|
+
const double* pointData,
|
|
67
|
+
const double* shapeData,
|
|
68
|
+
const double* geometryData,
|
|
69
|
+
std::uint32_t geometryCount,
|
|
70
|
+
const double* optionsData,
|
|
71
|
+
double* outputData);
|
|
72
|
+
|
|
73
|
+
std::int32_t rundot_kinetix_ext_distance_solve(
|
|
74
|
+
const double* shapeAData,
|
|
75
|
+
const double* shapeBData,
|
|
76
|
+
const double* geometryData,
|
|
77
|
+
std::uint32_t geometryCount,
|
|
78
|
+
const double* optionsData,
|
|
79
|
+
double* outputData);
|
|
80
|
+
|
|
81
|
+
std::int32_t rundot_kinetix_ext_distance_reset(double* outputData);
|
|
82
|
+
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
// Elastic Rods and Strands (A01 / A08)
|
|
85
|
+
// ---------------------------------------------------------------------------
|
|
86
|
+
std::uint32_t rundot_kinetix_ext_rope_abi_version();
|
|
87
|
+
std::uint32_t rundot_kinetix_ext_rope_node_stride();
|
|
88
|
+
std::uint32_t rundot_kinetix_ext_rope_node_size();
|
|
89
|
+
std::uint32_t rundot_kinetix_ext_rope_segment_stride();
|
|
90
|
+
std::uint32_t rundot_kinetix_ext_rope_segment_size();
|
|
91
|
+
std::uint32_t rundot_kinetix_ext_rope_bend_stride();
|
|
92
|
+
std::uint32_t rundot_kinetix_ext_rope_bend_size();
|
|
93
|
+
std::uint32_t rundot_kinetix_ext_rope_twist_stride();
|
|
94
|
+
std::uint32_t rundot_kinetix_ext_rope_twist_size();
|
|
95
|
+
std::uint32_t rundot_kinetix_ext_rope_anchor_stride();
|
|
96
|
+
std::uint32_t rundot_kinetix_ext_rope_anchor_size();
|
|
97
|
+
std::uint32_t rundot_kinetix_ext_rope_params_stride();
|
|
98
|
+
std::uint32_t rundot_kinetix_ext_rope_params_size();
|
|
99
|
+
std::uint32_t rundot_kinetix_ext_rope_break_event_stride();
|
|
100
|
+
std::uint32_t rundot_kinetix_ext_rope_break_event_size();
|
|
101
|
+
std::uint32_t rundot_kinetix_ext_rope_max_nodes();
|
|
102
|
+
std::uint32_t rundot_kinetix_ext_rope_max_segments();
|
|
103
|
+
std::uint32_t rundot_kinetix_ext_rope_max_anchors();
|
|
104
|
+
std::uint32_t rundot_kinetix_ext_rope_max_break_events();
|
|
105
|
+
std::uint32_t rundot_kinetix_ext_rope_stride();
|
|
106
|
+
std::uint32_t rundot_kinetix_ext_rope_size();
|
|
107
|
+
std::uint32_t rundot_kinetix_ext_rope_probe_size();
|
|
108
|
+
const double* rundot_kinetix_ext_rope_probe(std::uint32_t scenario);
|
|
109
|
+
|
|
110
|
+
std::int32_t rundot_kinetix_ext_rope_step(
|
|
111
|
+
double* nodeData,
|
|
112
|
+
std::uint32_t nodeCount,
|
|
113
|
+
double* segmentData,
|
|
114
|
+
std::uint32_t segmentCount,
|
|
115
|
+
double* bendData,
|
|
116
|
+
std::uint32_t bendCount,
|
|
117
|
+
double* twistData,
|
|
118
|
+
std::uint32_t twistCount,
|
|
119
|
+
double* anchorData,
|
|
120
|
+
std::uint32_t anchorCount,
|
|
121
|
+
double* bodyData,
|
|
122
|
+
std::uint32_t bodyCount,
|
|
123
|
+
const double* paramsData,
|
|
124
|
+
double* breakEventsData,
|
|
125
|
+
std::uint32_t* breakEventCount,
|
|
126
|
+
double dt);
|
|
127
|
+
|
|
128
|
+
std::int32_t rundot_kinetix_ext_rope_solve(
|
|
129
|
+
double* nodeData,
|
|
130
|
+
std::uint32_t nodeCount,
|
|
131
|
+
double* segmentData,
|
|
132
|
+
std::uint32_t segmentCount,
|
|
133
|
+
double* bendData,
|
|
134
|
+
std::uint32_t bendCount,
|
|
135
|
+
double* twistData,
|
|
136
|
+
std::uint32_t twistCount,
|
|
137
|
+
double* anchorData,
|
|
138
|
+
std::uint32_t anchorCount,
|
|
139
|
+
double* bodyData,
|
|
140
|
+
std::uint32_t bodyCount,
|
|
141
|
+
const double* paramsData,
|
|
142
|
+
double* breakEventsData,
|
|
143
|
+
std::uint32_t* breakEventCount,
|
|
144
|
+
double dt);
|
|
145
|
+
|
|
146
|
+
std::int32_t rundot_kinetix_ext_rope_reset(
|
|
147
|
+
double* nodeData,
|
|
148
|
+
std::uint32_t nodeCount);
|
|
149
|
+
|
|
150
|
+
// ---------------------------------------------------------------------------
|
|
151
|
+
// Vehicle Suspension and Wheels (V01)
|
|
152
|
+
// ---------------------------------------------------------------------------
|
|
153
|
+
std::uint32_t rundot_kinetix_ext_vehicle_abi_version();
|
|
154
|
+
std::uint32_t rundot_kinetix_ext_vehicle_wheel_stride();
|
|
155
|
+
std::uint32_t rundot_kinetix_ext_vehicle_wheel_size();
|
|
156
|
+
std::uint32_t rundot_kinetix_ext_vehicle_contact_stride();
|
|
157
|
+
std::uint32_t rundot_kinetix_ext_vehicle_contact_size();
|
|
158
|
+
std::uint32_t rundot_kinetix_ext_vehicle_chassis_stride();
|
|
159
|
+
std::uint32_t rundot_kinetix_ext_vehicle_chassis_size();
|
|
160
|
+
std::uint32_t rundot_kinetix_ext_vehicle_surface_stride();
|
|
161
|
+
std::uint32_t rundot_kinetix_ext_vehicle_surface_size();
|
|
162
|
+
std::uint32_t rundot_kinetix_ext_vehicle_triangle_stride();
|
|
163
|
+
std::uint32_t rundot_kinetix_ext_vehicle_triangle_size();
|
|
164
|
+
std::uint32_t rundot_kinetix_ext_vehicle_comparison_stride();
|
|
165
|
+
std::uint32_t rundot_kinetix_ext_vehicle_comparison_size();
|
|
166
|
+
std::uint32_t rundot_kinetix_ext_vehicle_max_triangles();
|
|
167
|
+
std::uint32_t rundot_kinetix_ext_vehicle_stride();
|
|
168
|
+
std::uint32_t rundot_kinetix_ext_vehicle_size();
|
|
169
|
+
|
|
170
|
+
std::int32_t rundot_kinetix_ext_vehicle_raycast_wheel(
|
|
171
|
+
const double* wheelData,
|
|
172
|
+
const double* chassisData,
|
|
173
|
+
const double* surfaceData,
|
|
174
|
+
const double* triangleData,
|
|
175
|
+
std::uint32_t triangleCount,
|
|
176
|
+
double dt,
|
|
177
|
+
double* outputContact);
|
|
178
|
+
|
|
179
|
+
std::int32_t rundot_kinetix_ext_vehicle_shapecast_wheel(
|
|
180
|
+
const double* wheelData,
|
|
181
|
+
const double* chassisData,
|
|
182
|
+
const double* surfaceData,
|
|
183
|
+
const double* triangleData,
|
|
184
|
+
std::uint32_t triangleCount,
|
|
185
|
+
double dt,
|
|
186
|
+
double* outputContact);
|
|
187
|
+
|
|
188
|
+
std::int32_t rundot_kinetix_ext_vehicle_evaluate_wheel(
|
|
189
|
+
const double* wheelData,
|
|
190
|
+
const double* chassisData,
|
|
191
|
+
const double* surfaceData,
|
|
192
|
+
const double* triangleData,
|
|
193
|
+
std::uint32_t triangleCount,
|
|
194
|
+
double dt,
|
|
195
|
+
double* outputContact);
|
|
196
|
+
|
|
197
|
+
std::int32_t rundot_kinetix_ext_vehicle_compare_wheel(
|
|
198
|
+
const double* wheelData,
|
|
199
|
+
const double* chassisData,
|
|
200
|
+
const double* surfaceData,
|
|
201
|
+
const double* triangleData,
|
|
202
|
+
std::uint32_t triangleCount,
|
|
203
|
+
double dt,
|
|
204
|
+
double* outputComparison);
|
|
205
|
+
|
|
206
|
+
std::int32_t rundot_kinetix_ext_vehicle_solve_wheel(
|
|
207
|
+
const double* wheelData,
|
|
208
|
+
const double* chassisData,
|
|
209
|
+
const double* surfaceData,
|
|
210
|
+
const double* triangleData,
|
|
211
|
+
std::uint32_t triangleCount,
|
|
212
|
+
double dt,
|
|
213
|
+
double* outputContact);
|
|
214
|
+
|
|
215
|
+
std::int32_t rundot_kinetix_ext_vehicle_step(
|
|
216
|
+
const double* wheelData,
|
|
217
|
+
const double* chassisData,
|
|
218
|
+
const double* surfaceData,
|
|
219
|
+
const double* triangleData,
|
|
220
|
+
std::uint32_t triangleCount,
|
|
221
|
+
double dt,
|
|
222
|
+
double* outputContact);
|
|
223
|
+
|
|
224
|
+
std::int32_t rundot_kinetix_ext_vehicle_reset_contact(double* contactData);
|
|
225
|
+
|
|
226
|
+
} // extern "C"
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
#include "extended_abi_deformables.hpp"
|
|
2
|
+
#include "physics/soft_body.hpp"
|
|
3
|
+
|
|
4
|
+
#include <cstdint>
|
|
5
|
+
|
|
6
|
+
extern "C" {
|
|
7
|
+
|
|
8
|
+
// ABI Version
|
|
9
|
+
std::uint32_t rundot_kinetix_ext_deformables_abi_version() {
|
|
10
|
+
return 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
// Cloth and Surface Deformables (A02)
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
std::uint32_t rundot_kinetix_ext_cloth_stride() {
|
|
17
|
+
return rundot_kinetix_ext_cloth_node_stride();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
std::uint32_t rundot_kinetix_ext_cloth_size() {
|
|
21
|
+
return rundot_kinetix_ext_cloth_node_stride();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
std::uint32_t rundot_kinetix_ext_cloth_probe_size() {
|
|
25
|
+
return rundot_cloth_probe_size();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const double* rundot_kinetix_ext_cloth_probe(std::uint32_t scenario) {
|
|
29
|
+
return rundot_cloth_probe(scenario);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// ---------------------------------------------------------------------------
|
|
33
|
+
// Volume Soft Bodies (A03)
|
|
34
|
+
// ---------------------------------------------------------------------------
|
|
35
|
+
std::uint32_t rundot_kinetix_ext_soft_body_abi_version() {
|
|
36
|
+
return rundot_kinetix_physics_soft_body_abi_version();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
std::uint32_t rundot_kinetix_ext_soft_body_node_stride() {
|
|
40
|
+
return rundot_kinetix_physics_soft_body_node_stride();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
std::uint32_t rundot_kinetix_ext_soft_body_tet_stride() {
|
|
44
|
+
return rundot_kinetix_physics_soft_body_tet_stride();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
std::uint32_t rundot_kinetix_ext_soft_body_face_stride() {
|
|
48
|
+
return rundot_kinetix_physics_soft_body_face_stride();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
std::uint32_t rundot_kinetix_ext_soft_body_edge_stride() {
|
|
52
|
+
return rundot_kinetix_physics_soft_body_edge_stride();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
std::uint32_t rundot_kinetix_ext_soft_body_anchor_stride() {
|
|
56
|
+
return rundot_kinetix_physics_soft_body_anchor_stride();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
std::uint32_t rundot_kinetix_ext_soft_body_params_stride() {
|
|
60
|
+
return rundot_kinetix_physics_soft_body_params_stride();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
std::uint32_t rundot_kinetix_ext_soft_body_max_nodes() {
|
|
64
|
+
return rundot_kinetix_physics_soft_body_max_nodes();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
std::uint32_t rundot_kinetix_ext_soft_body_max_tetrahedra() {
|
|
68
|
+
return rundot_kinetix_physics_soft_body_max_tetrahedra();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
std::uint32_t rundot_kinetix_ext_soft_body_max_edges() {
|
|
72
|
+
return rundot_kinetix_physics_soft_body_max_edges();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
std::uint32_t rundot_kinetix_ext_soft_body_max_faces() {
|
|
76
|
+
return rundot_kinetix_physics_soft_body_max_faces();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
std::uint32_t rundot_kinetix_ext_soft_body_size() {
|
|
80
|
+
return rundot_kinetix_physics_soft_body_node_stride();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
std::int32_t rundot_kinetix_ext_soft_body_step(
|
|
84
|
+
double* nodeData,
|
|
85
|
+
std::uint32_t nodeCount,
|
|
86
|
+
double* tetData,
|
|
87
|
+
std::uint32_t tetCount,
|
|
88
|
+
double* faceData,
|
|
89
|
+
std::uint32_t faceCount,
|
|
90
|
+
double* edgeData,
|
|
91
|
+
std::uint32_t edgeCount,
|
|
92
|
+
double* anchorData,
|
|
93
|
+
std::uint32_t anchorCount,
|
|
94
|
+
double* bodyData,
|
|
95
|
+
std::uint32_t bodyCount,
|
|
96
|
+
const double* paramsData,
|
|
97
|
+
double dt) {
|
|
98
|
+
return rundot_kinetix_physics_soft_body_step(
|
|
99
|
+
nodeData, nodeCount,
|
|
100
|
+
tetData, tetCount,
|
|
101
|
+
faceData, faceCount,
|
|
102
|
+
edgeData, edgeCount,
|
|
103
|
+
anchorData, anchorCount,
|
|
104
|
+
bodyData, bodyCount,
|
|
105
|
+
paramsData, dt);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
double rundot_kinetix_ext_soft_body_compute_volume(
|
|
109
|
+
const double* nodeData,
|
|
110
|
+
std::uint32_t nodeCount,
|
|
111
|
+
const double* tetData,
|
|
112
|
+
std::uint32_t tetCount) {
|
|
113
|
+
return rundot_kinetix_physics_soft_body_compute_volume(
|
|
114
|
+
nodeData, nodeCount, tetData, tetCount);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
std::int32_t rundot_kinetix_ext_soft_body_solve_volume(
|
|
118
|
+
double* nodeData,
|
|
119
|
+
std::uint32_t nodeCount,
|
|
120
|
+
double* tetData,
|
|
121
|
+
std::uint32_t tetCount,
|
|
122
|
+
double volumeStiffness,
|
|
123
|
+
double dt) {
|
|
124
|
+
return rundot_kinetix_physics_soft_body_solve_volume(
|
|
125
|
+
nodeData, nodeCount, tetData, tetCount, volumeStiffness, dt);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
std::int32_t rundot_kinetix_ext_soft_body_apply_pressure(
|
|
129
|
+
double* nodeData,
|
|
130
|
+
std::uint32_t nodeCount,
|
|
131
|
+
const double* faceData,
|
|
132
|
+
std::uint32_t faceCount,
|
|
133
|
+
double pressure,
|
|
134
|
+
double dt) {
|
|
135
|
+
return rundot_kinetix_physics_soft_body_apply_pressure(
|
|
136
|
+
nodeData, nodeCount, faceData, faceCount, pressure, dt);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
std::int32_t rundot_kinetix_ext_soft_body_handle_inversion(
|
|
140
|
+
double* nodeData,
|
|
141
|
+
std::uint32_t nodeCount,
|
|
142
|
+
double* tetData,
|
|
143
|
+
std::uint32_t tetCount,
|
|
144
|
+
double threshold,
|
|
145
|
+
double stiffness) {
|
|
146
|
+
return rundot_kinetix_physics_soft_body_handle_inversion(
|
|
147
|
+
nodeData, nodeCount, tetData, tetCount, threshold, stiffness);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
std::uint32_t rundot_kinetix_ext_soft_body_probe_size() {
|
|
151
|
+
return rundot_soft_body_probe_size();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const double* rundot_kinetix_ext_soft_body_probe(std::uint32_t scenario) {
|
|
155
|
+
return rundot_soft_body_probe(scenario);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// ---------------------------------------------------------------------------
|
|
159
|
+
// Soft Body Collisions and Two-Way Coupling (A04)
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
std::uint32_t rundot_kinetix_ext_soft_stride() {
|
|
162
|
+
return rundot_kinetix_ext_soft_node_stride();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
std::uint32_t rundot_kinetix_ext_soft_size() {
|
|
166
|
+
return rundot_kinetix_ext_soft_node_stride();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
std::uint32_t rundot_kinetix_ext_soft_collision_stride() {
|
|
170
|
+
return rundot_kinetix_ext_soft_node_stride();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
std::uint32_t rundot_kinetix_ext_soft_collision_size() {
|
|
174
|
+
return rundot_kinetix_ext_soft_node_stride();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// ---------------------------------------------------------------------------
|
|
178
|
+
// Fracture, Tearing, and Cutting for Deformables (A06)
|
|
179
|
+
// ---------------------------------------------------------------------------
|
|
180
|
+
std::uint32_t rundot_kinetix_ext_fracture_stride() {
|
|
181
|
+
return rundot_kinetix_ext_fracture_vertex_stride();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
std::uint32_t rundot_kinetix_ext_fracture_size() {
|
|
185
|
+
return rundot_kinetix_ext_fracture_vertex_stride();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// ---------------------------------------------------------------------------
|
|
189
|
+
// Signed Distance Field (SDF) and Custom Geometry (A09)
|
|
190
|
+
// ---------------------------------------------------------------------------
|
|
191
|
+
std::uint32_t rundot_kinetix_ext_sdf_stride() {
|
|
192
|
+
return rundot_kinetix_ext_sdf_grid_desc_stride();
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
std::uint32_t rundot_kinetix_ext_sdf_size() {
|
|
196
|
+
return rundot_kinetix_ext_sdf_grid_desc_stride();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
std::uint32_t rundot_kinetix_ext_custom_geometry_stride() {
|
|
200
|
+
return rundot_kinetix_ext_custom_geometry_desc_stride();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
std::uint32_t rundot_kinetix_ext_custom_geometry_size() {
|
|
204
|
+
return rundot_kinetix_ext_custom_geometry_desc_stride();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// ---------------------------------------------------------------------------
|
|
208
|
+
// Deformable Spatial Queries and Topology Snapshots (A10)
|
|
209
|
+
// ---------------------------------------------------------------------------
|
|
210
|
+
std::uint32_t rundot_kinetix_ext_deformable_stride() {
|
|
211
|
+
return rundot_kinetix_ext_deformable_node_stride();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
std::uint32_t rundot_kinetix_ext_deformable_size() {
|
|
215
|
+
return rundot_kinetix_ext_deformable_node_stride();
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// ---------------------------------------------------------------------------
|
|
219
|
+
// Planar Deformable Physics (D18)
|
|
220
|
+
// ---------------------------------------------------------------------------
|
|
221
|
+
std::uint32_t rundot_kinetix_ext_d18_stride() {
|
|
222
|
+
return rundot_kinetix_ext_d18_node_stride();
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
std::uint32_t rundot_kinetix_ext_d18_size() {
|
|
226
|
+
return rundot_kinetix_ext_d18_node_stride();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// Planar Deformables Standard Named Aliases
|
|
230
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_abi_version() {
|
|
231
|
+
return rundot_kinetix_ext_d18_abi_version();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_node_stride() {
|
|
235
|
+
return rundot_kinetix_ext_d18_node_stride();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_segment_stride() {
|
|
239
|
+
return rundot_kinetix_ext_d18_segment_stride();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_face_stride() {
|
|
243
|
+
return rundot_kinetix_ext_d18_face_stride();
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_distance_constraint_stride() {
|
|
247
|
+
return rundot_kinetix_ext_d18_distance_constraint_stride();
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_bend_constraint_stride() {
|
|
251
|
+
return rundot_kinetix_ext_d18_bend_constraint_stride();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_shear_constraint_stride() {
|
|
255
|
+
return rundot_kinetix_ext_d18_shear_constraint_stride();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_area_constraint_stride() {
|
|
259
|
+
return rundot_kinetix_ext_d18_area_constraint_stride();
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_anchor_stride() {
|
|
263
|
+
return rundot_kinetix_ext_d18_anchor_stride();
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_particle_stride() {
|
|
267
|
+
return rundot_kinetix_ext_d18_particle_stride();
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_emitter_stride() {
|
|
271
|
+
return rundot_kinetix_ext_d18_emitter_stride();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_params_stride() {
|
|
275
|
+
return rundot_kinetix_ext_d18_params_stride();
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_rigid_body_stride() {
|
|
279
|
+
return rundot_kinetix_ext_d18_rigid_body_stride();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_raycast_query_stride() {
|
|
283
|
+
return rundot_kinetix_ext_d18_raycast_query_stride();
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_raycast_hit_stride() {
|
|
287
|
+
return rundot_kinetix_ext_d18_raycast_hit_stride();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_closest_point_query_stride() {
|
|
291
|
+
return rundot_kinetix_ext_d18_closest_point_query_stride();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_closest_point_hit_stride() {
|
|
295
|
+
return rundot_kinetix_ext_d18_closest_point_hit_stride();
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_overlap_query_stride() {
|
|
299
|
+
return rundot_kinetix_ext_d18_overlap_query_stride();
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_overlap_hit_stride() {
|
|
303
|
+
return rundot_kinetix_ext_d18_overlap_hit_stride();
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_world_size() {
|
|
307
|
+
return rundot_kinetix_ext_d18_world_size();
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_stride() {
|
|
311
|
+
return rundot_kinetix_ext_d18_node_stride();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
std::uint32_t rundot_kinetix_ext_planar_deformable_size() {
|
|
315
|
+
return rundot_kinetix_ext_d18_node_stride();
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_step(
|
|
319
|
+
rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
320
|
+
double* rigidBodiesData,
|
|
321
|
+
std::uint32_t bodyCount,
|
|
322
|
+
double dt) {
|
|
323
|
+
return rundot_kinetix_ext_d18_step(world, rigidBodiesData, bodyCount, dt);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_step_raw(
|
|
327
|
+
double* nodeData,
|
|
328
|
+
std::uint32_t nodeCount,
|
|
329
|
+
double* distanceConstraintData,
|
|
330
|
+
std::uint32_t distanceConstraintCount,
|
|
331
|
+
double* bendConstraintData,
|
|
332
|
+
std::uint32_t bendConstraintCount,
|
|
333
|
+
double* shearConstraintData,
|
|
334
|
+
std::uint32_t shearConstraintCount,
|
|
335
|
+
double* areaConstraintData,
|
|
336
|
+
std::uint32_t areaConstraintCount,
|
|
337
|
+
double* anchorData,
|
|
338
|
+
std::uint32_t anchorCount,
|
|
339
|
+
double* particleData,
|
|
340
|
+
std::uint32_t particleCount,
|
|
341
|
+
double* emitterData,
|
|
342
|
+
std::uint32_t emitterCount,
|
|
343
|
+
double* rigidBodyData,
|
|
344
|
+
std::uint32_t rigidBodyCount,
|
|
345
|
+
const double* paramsData,
|
|
346
|
+
double* breakEventsData,
|
|
347
|
+
std::uint32_t* breakEventCount,
|
|
348
|
+
double dt) {
|
|
349
|
+
return rundot_kinetix_ext_d18_step_raw(
|
|
350
|
+
nodeData, nodeCount,
|
|
351
|
+
distanceConstraintData, distanceConstraintCount,
|
|
352
|
+
bendConstraintData, bendConstraintCount,
|
|
353
|
+
shearConstraintData, shearConstraintCount,
|
|
354
|
+
areaConstraintData, areaConstraintCount,
|
|
355
|
+
anchorData, anchorCount,
|
|
356
|
+
particleData, particleCount,
|
|
357
|
+
emitterData, emitterCount,
|
|
358
|
+
rigidBodyData, rigidBodyCount,
|
|
359
|
+
paramsData,
|
|
360
|
+
breakEventsData, breakEventCount,
|
|
361
|
+
dt);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_add_rope(
|
|
365
|
+
rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
366
|
+
double startX, double startY,
|
|
367
|
+
double endX, double endY,
|
|
368
|
+
std::uint32_t segmentCount,
|
|
369
|
+
double totalMass,
|
|
370
|
+
double stretchStiffness,
|
|
371
|
+
double bendStiffness,
|
|
372
|
+
double radius) {
|
|
373
|
+
return rundot_kinetix_ext_d18_add_rope(
|
|
374
|
+
world, startX, startY, endX, endY,
|
|
375
|
+
segmentCount, totalMass, stretchStiffness, bendStiffness, radius);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_add_cloth_grid(
|
|
379
|
+
rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
380
|
+
double originX, double originY,
|
|
381
|
+
double width, double height,
|
|
382
|
+
std::uint32_t cols, std::uint32_t rows,
|
|
383
|
+
double totalMass,
|
|
384
|
+
double stretchStiffness,
|
|
385
|
+
double shearStiffness,
|
|
386
|
+
double bendStiffness,
|
|
387
|
+
double areaStiffness,
|
|
388
|
+
double radius) {
|
|
389
|
+
return rundot_kinetix_ext_d18_add_cloth_grid(
|
|
390
|
+
world, originX, originY, width, height,
|
|
391
|
+
cols, rows, totalMass, stretchStiffness, shearStiffness, bendStiffness,
|
|
392
|
+
areaStiffness, radius);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_add_particle(
|
|
396
|
+
rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
397
|
+
double posX, double posY,
|
|
398
|
+
double velX, double velY,
|
|
399
|
+
double radius, double mass, double lifetime) {
|
|
400
|
+
return rundot_kinetix_ext_d18_add_particle(
|
|
401
|
+
world, posX, posY, velX, velY, radius, mass, lifetime);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_raycast(
|
|
405
|
+
const rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
406
|
+
const double* queryData,
|
|
407
|
+
double* hitData) {
|
|
408
|
+
return rundot_kinetix_ext_d18_raycast(world, queryData, hitData);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_closest_point(
|
|
412
|
+
const rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
413
|
+
const double* queryData,
|
|
414
|
+
double* hitData) {
|
|
415
|
+
return rundot_kinetix_ext_d18_closest_point(world, queryData, hitData);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_overlap(
|
|
419
|
+
const rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
420
|
+
const double* queryData,
|
|
421
|
+
double* resultData,
|
|
422
|
+
std::uint32_t* outIndices,
|
|
423
|
+
std::uint32_t maxIndices) {
|
|
424
|
+
return rundot_kinetix_ext_d18_overlap(world, queryData, resultData, outIndices, maxIndices);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_capture_snapshot(
|
|
428
|
+
const rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
429
|
+
std::uint8_t* outBuffer,
|
|
430
|
+
std::uint32_t maxBytes,
|
|
431
|
+
std::uint32_t* outBytes) {
|
|
432
|
+
return rundot_kinetix_ext_d18_capture_snapshot(world, outBuffer, maxBytes, outBytes);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_restore_snapshot(
|
|
436
|
+
rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
437
|
+
const std::uint8_t* inBuffer,
|
|
438
|
+
std::uint32_t byteCount) {
|
|
439
|
+
return rundot_kinetix_ext_d18_restore_snapshot(world, inBuffer, byteCount);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
std::int32_t rundot_kinetix_ext_planar_deformable_compute_mass_properties(
|
|
443
|
+
const rundot::kinetix::physics::PlanarDeformableWorld* world,
|
|
444
|
+
double* outProperties) {
|
|
445
|
+
return rundot_kinetix_ext_d18_compute_mass_properties(world, outProperties);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
}
|