Skip to content
Snippets Groups Projects
Commit 4eb49c53 authored by Klara Tyroller's avatar Klara Tyroller
Browse files

friendly is a little less friendly; added more limit for the horizontal movement

parent ea86b486
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,8 @@ UVHFacialExpressions::UVHFacialExpressions()
},
{
Friendliness, {
{6, 0.3, AU_Both},
{12, 0.5, AU_Both}
{6, 0.15, AU_Both},
{12, 0.3, AU_Both}
//{13, 0.1, AU_Both}
//{44, 0.3, AU_Both}
}
......
......@@ -221,13 +221,14 @@ FRotator UVHListenerBackchannels::HeadRotation(FRotator NodRotation, FRotator Vi
res.Yaw += 360.0;
}
if (res.Yaw > 85.0)
float limit = 45.0;
if (res.Yaw > limit)
{
res.Yaw = 85.0;
res.Yaw = limit;
}
if (res.Yaw< -85.0)
if (res.Yaw< -limit)
{
res.Yaw = -85.0;
res.Yaw = -limit;
}
if (res.Roll > 40.0)
{
......
......@@ -38,6 +38,10 @@ public:
bool chameleon = false;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "My Nodes")
bool nodding = false;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "My Nodes")
float TimeUntilLookAway;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "My Nodes")
float LookAwayDuration;
//FRotator NodRotaor = FRotator(0.0, 0.0, 0.0);
//FRotator ViewDirRotator = FRotator(0.0, 0.0, 0.0);
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment