Commit 62345095 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding HATO event, but WIP

parent d3afab9c
......@@ -284,4 +284,5 @@ void SetCoreEventParams( CVAEvent& oEvent, const CVAMotionState* pMotionState )
oEvent.vView = pMotionState->GetView();
oEvent.vUp = pMotionState->GetUp();
oEvent.oOrientation = pMotionState->GetOrientation();
oEvent.qHATO = pMotionState->GetHeadAboveTorsoOrientation();
}
......@@ -3412,7 +3412,6 @@ VAQuat CVACoreImpl::GetSoundReceiverHeadAboveTorsoOrientation( const int iID ) c
const CVAReceiverState* pListenerState = pHeadState->GetReceiverState( iID );
if( !pListenerState )
// Hrer existiert nicht
VA_EXCEPT2( INVALID_PARAMETER, "Invalid sound receiver ID" );
const CVAMotionState* pMotionState = pListenerState->GetMotionState();
......@@ -3447,15 +3446,12 @@ void CVACoreImpl::SetSoundReceiverHeadAboveTorsoOrientation( const int iID, cons
CVAMotionState* pNewMotionState = pListenerState->AlterMotionState();
pNewMotionState->SetHeadAboveTorsoOrientation( qOrient );
/* Ereignis generieren
CVAEvent ev;
ev.iEventType = CVAEvent::VA_EVENT_SOUND_RECEIVER_REALCHANGED_POSE;
ev.iEventType = CVAEvent::SOUND_RECEIVER_REAL_WORLD_POSE_CHANGED;
ev.pSender = this;
ev.iObjectID = iID;
SetCoreEventParams( ev, pNewMotionState );
m_pEventManager->EnqueueEvent( ev );
*/
if( !bSync )
UnlockUpdate();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment