Skip to content

anim-format (runtime format) / hitTestShapes

Function: hitTestShapes() ​

ts
function hitTestShapes(
   ga, 
   gb, 
   options?
): MarkerHitResult;

Do two resolved shapes touch, and where (AABBs first)?

Parameters ​

ParameterType
gaHitShape
gbHitShape
options?MarkerHitOptions

Returns ​

MarkerHitResult

HereSplash — 2D animation for the web