// ---------------------------------------------------------------------------- void vHavokChainAnimation::OnHandleCallback(IVisCallbackDataObject_cl *pData) { if (pData->m_pSender == &Vision::Callbacks.OnUpdateSceneFinished) { UpdateBones(); } }
void ALeapMotionHandActor::Update(float DeltaSeconds) { FLeapMotionDevice* Device = FLeapMotionControllerPlugin::GetLeapDeviceSafe(); if (Device && Device->IsConnected()) { Device->GetPinchStrength(HandId, PinchStrength); Device->GetGrabStrength(HandId, GrabStrength); } UpdateBones(DeltaSeconds); OnHandUpdated.Broadcast(HandId, DeltaSeconds); }