Skip to content
Snippets Groups Projects
Commit 0a3ae956 authored by Marius Schmeling's avatar Marius Schmeling
Browse files

fixed #71 changed default values

parent d32fd0eb
No related branches found
No related tags found
1 merge request!4Release
No preview for this file type
...@@ -593,7 +593,7 @@ int FVAPluginModule::createNewSoundSource(std::string bufferID, std::string name ...@@ -593,7 +593,7 @@ int FVAPluginModule::createNewSoundSource(std::string bufferID, std::string name
pVA->SetSoundSourceSignalSource(soundSourceID, bufferID); pVA->SetSoundSourceSignalSource(soundSourceID, bufferID);
pVA->SetSoundSourceDirectivity(soundSourceID, VADirectivityManager::getDefaultDirectivity()->getID()); // pVA->SetSoundSourceDirectivity(soundSourceID, VADirectivityManager::getDefaultDirectivity()->getID());
return soundSourceID; return soundSourceID;
......
...@@ -54,6 +54,9 @@ bool AVASoundSourceRepresentation::setPos(FVector pos) ...@@ -54,6 +54,9 @@ bool AVASoundSourceRepresentation::setPos(FVector pos)
bool AVASoundSourceRepresentation::setRot(FRotator rot) bool AVASoundSourceRepresentation::setRot(FRotator rot)
{ {
FQuat quat(rot);
quat = quat * FQuat(FRotator(90,0,0));
rot = FRotator(quat);
sphereComp->SetWorldRotation(rot); sphereComp->SetWorldRotation(rot);
return true; return true;
} }
......
...@@ -11,7 +11,8 @@ UENUM() ...@@ -11,7 +11,8 @@ UENUM()
enum EDir { enum EDir {
DefaultHRIR, DefaultHRIR,
manualFile, manualFile,
phoneme phoneme,
none
}; };
UENUM() UENUM()
...@@ -70,7 +71,7 @@ protected: ...@@ -70,7 +71,7 @@ protected:
// Use the manual Offset for the position? // Use the manual Offset for the position?
UPROPERTY(EditAnywhere, meta = (DisplayName = "Use Offset?", Category = "Position")) UPROPERTY(EditAnywhere, meta = (DisplayName = "Use Offset?", Category = "Position"))
bool usePoseOffset = true; bool usePoseOffset = false;
// Offset in Position // Offset in Position
UPROPERTY(EditAnywhere, meta = (DisplayName = "Offset", Category = "Position", EditCondition = "usePoseOffset")) UPROPERTY(EditAnywhere, meta = (DisplayName = "Offset", Category = "Position", EditCondition = "usePoseOffset"))
...@@ -78,7 +79,7 @@ protected: ...@@ -78,7 +79,7 @@ protected:
// Offset in Rotation // Offset in Rotation
UPROPERTY(EditAnywhere, meta = (DisplayName = "Offset Rotation", Category = "Position", EditCondition = "usePoseOffset")) 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" // Name of Bone bound to if Position is set to "Attatch to a Bone"
UPROPERTY(EditAnywhere, meta = (DisplayName = "Bone Name", Category = "Position")) UPROPERTY(EditAnywhere, meta = (DisplayName = "Bone Name", Category = "Position"))
...@@ -86,7 +87,7 @@ protected: ...@@ -86,7 +87,7 @@ protected:
// Choose Directivity Setting for Receiver // Choose Directivity Setting for Receiver
UPROPERTY(EditAnywhere, meta = (DisplayName = "Directivity", Category = "Directivity")) 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 // File Name of the Directivity that sould be used
UPROPERTY(EditAnywhere, meta = (DisplayName = "Directivity by file name", Category = "Directivity")) UPROPERTY(EditAnywhere, meta = (DisplayName = "Directivity by file name", Category = "Directivity"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment