17 const size_t numLocators = referenceLocators.size();
21 const auto& jointState = skeletonState.jointState;
23 for (
size_t locatorID = 0; locatorID < numLocators; locatorID++) {
24 const Locator& locator = referenceLocators[locatorID];
26 const size_t& parentId = locator.
parent;
29 position[locatorID] = jointState[parentId].transform * locator.
offset;
SkeletonStateT< float > SkeletonState
std::vector< Locator > LocatorList
A collection of locators attached to a skeleton.
std::vector< Vector3f > position
World-space positions of all locators, updated when the skeleton moves.
void update(const SkeletonState &skeletonState, const LocatorList &referenceLocators) noexcept
Updates the world positions of all locators based on the current skeleton pose.
Represents a point attached to a joint in a skeleton.
size_t parent
Index of the parent joint in the skeleton.
Vector3f offset
Position in the parent joint's local coordinate frame.