Skip to content

Function: findBodyIndex() ​

ts
function findBodyIndex(obj, bodies): number;

Walks up the scene graph to find which body index owns a given object. Returns -1 when no match is found.

Parameters ​

ParameterType
objObject3D
bodiesRaycastBody[]

Returns ​

number

Distribué sous la licence indiquée dans le dépôt.