1.9
This commit is contained in:
parent
fc7c94bd69
commit
2cc2f003df
71 changed files with 3359 additions and 1027 deletions
|
|
@ -4,10 +4,10 @@
|
|||
// Common body, footprint, motion, and contact runtime for \u56de\u8ee2\u4f53, \u6bd2\u30d6\u30ed\u30c3\u30af, and \u5f80\u5fa9\u4f53.
|
||||
(function (global) {
|
||||
const footprints = global.TarinaiCollisionFootprints;
|
||||
function num(v, fallback = 0) {
|
||||
const num = global.TarinaiCoreHelpers?.finiteOr || ((v, fallback = 0) => {
|
||||
const n = Number(v);
|
||||
return Number.isFinite(n) ? n : fallback;
|
||||
}
|
||||
});
|
||||
|
||||
function rectCorners(rect, padding = 0) {
|
||||
return footprints?.rectCorners?.(rect, padding) || [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue