Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
62345095
Commit
62345095
authored
Dec 06, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding HATO event, but WIP
parent
d3afab9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Utils/VAUtils.cpp
View file @
62345095
...
...
@@ -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
();
}
src/VACoreImpl.cpp
View file @
62345095
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment