diff --git a/Content/VATexture.uasset b/Content/VATexture.uasset index 7ad1244c2bdb1edd70836ef3d0eb3c7095bfe014..e9efc1c6472a23a438bc07752b12b91a0e2addaf 100644 Binary files a/Content/VATexture.uasset and b/Content/VATexture.uasset differ diff --git a/Source/VAPlugin/Private/VAPlugin.cpp b/Source/VAPlugin/Private/VAPlugin.cpp index 9891d1ae01023aec0e603bf6167ed3a84c1ac0c0..98f614801ce7980c8b4aefaf1a8b9ef1e5e1296b 100644 --- a/Source/VAPlugin/Private/VAPlugin.cpp +++ b/Source/VAPlugin/Private/VAPlugin.cpp @@ -593,7 +593,7 @@ int FVAPluginModule::createNewSoundSource(std::string bufferID, std::string name pVA->SetSoundSourceSignalSource(soundSourceID, bufferID); - pVA->SetSoundSourceDirectivity(soundSourceID, VADirectivityManager::getDefaultDirectivity()->getID()); + // pVA->SetSoundSourceDirectivity(soundSourceID, VADirectivityManager::getDefaultDirectivity()->getID()); return soundSourceID; diff --git a/Source/VAPlugin/Private/VASoundSourceRepresentation.cpp b/Source/VAPlugin/Private/VASoundSourceRepresentation.cpp index b7d199f40ac3f6acd0579d37751b6904dfc652a6..dfa8b59c664e92f8a1331fe53ce3250e0d4632af 100644 --- a/Source/VAPlugin/Private/VASoundSourceRepresentation.cpp +++ b/Source/VAPlugin/Private/VASoundSourceRepresentation.cpp @@ -54,6 +54,9 @@ bool AVASoundSourceRepresentation::setPos(FVector pos) bool AVASoundSourceRepresentation::setRot(FRotator rot) { + FQuat quat(rot); + quat = quat * FQuat(FRotator(90,0,0)); + rot = FRotator(quat); sphereComp->SetWorldRotation(rot); return true; } diff --git a/Source/VAPlugin/Public/VASourceComponent.h b/Source/VAPlugin/Public/VASourceComponent.h index 8f1532e91a36025358ca31aa9417d2ce60feebae..23fb501c870205258292e8fd8b98492d81e58441 100644 --- a/Source/VAPlugin/Public/VASourceComponent.h +++ b/Source/VAPlugin/Public/VASourceComponent.h @@ -11,7 +11,8 @@ UENUM() enum EDir { DefaultHRIR, manualFile, - phoneme + phoneme, + none }; UENUM() @@ -70,7 +71,7 @@ protected: // Use the manual Offset for the position? UPROPERTY(EditAnywhere, meta = (DisplayName = "Use Offset?", Category = "Position")) - bool usePoseOffset = true; + bool usePoseOffset = false; // Offset in Position UPROPERTY(EditAnywhere, meta = (DisplayName = "Offset", Category = "Position", EditCondition = "usePoseOffset")) @@ -78,7 +79,7 @@ protected: // Offset in Rotation UPROPERTY(EditAnywhere, meta = (DisplayName = "Offset Rotation", Category = "Position", EditCondition = "usePoseOffset")) - FRotator offsetRotation = FRotator(0, 90, 0); + FRotator offsetRotation = FRotator(0, 0, 0); // Name of Bone bound to if Position is set to "Attatch to a Bone" UPROPERTY(EditAnywhere, meta = (DisplayName = "Bone Name", Category = "Position")) @@ -86,7 +87,7 @@ protected: // Choose Directivity Setting for Receiver UPROPERTY(EditAnywhere, meta = (DisplayName = "Directivity", Category = "Directivity")) - TEnumAsByte<EDir> directivitySetting = EDir::DefaultHRIR; + TEnumAsByte<EDir> directivitySetting = EDir::none; // File Name of the Directivity that sould be used UPROPERTY(EditAnywhere, meta = (DisplayName = "Directivity by file name", Category = "Directivity"))