Version: 2022.3

ArticulationBody.GetDofStartIndices

切换到手册
public int GetDofStartIndices (List<int> dofStartIndices);

参数

dofStartIndices Supplied list of integers to read back and store the data.

返回

int Total degrees of freedom for the entire hierarchy of articulation bodies.

描述

Calculates and reads back reduced coordinate data start indexes in reduced coordinate data buffer for every articulation body in the hierarchy.

In order to read back or set entire articulation hierarchy data in reduced coordinates where every degree of freedom is represented by float value, one needs to find the location of reduced cordinates data for particular ArticulationBody. This can be achieved by calling ArticulationBody.GetDofStartIndices and indexing resulting list by the particular body index via ArticulationBody.index. Number of degrees of freedom for particular articulation body can be found using ArticulationBody.dofCount. See Also: index, GetDofStartIndices, dofCount.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961