Maxime66410
Maxime66410
CC#
Created by Maxime66410 on 8/25/2023 in #help
❔ [Resolved] How to delete the OBJ folder after a build
Fix I clean my .csproj. And simply add
<Target Name="BeforeBuild">
<!-- Remove obj folder -->
<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
</Target>
<Target Name="BeforeBuild">
<!-- Remove obj folder -->
<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
</Target>
3 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
public void FixDistanceLeg()
{
for (int i = 0; i < singleLegs.Count; i++)
{
var distanceIKtoLegLocal = Vector3.Distance(singleLegs[i].transform.localPosition, singleLegsIK[i].transform.localPosition);

if (distanceIKtoLegLocal > distanceToFixStep)
{
//singleLegs[i].transform.position = singleLegsIK[i].transform.position;
singleLegs[i].transform.position = Vector3.Lerp(singleLegs[i].transform.position, singleLegsIK[i].transform.position, Time.deltaTime * speedSyncLegs);
singleLegsTarget[i] = singleLegsIK[i].transform.position;
singleLocalTarget[i] = singleLegsIK[i].transform.position;
}
}
}
public void FixDistanceLeg()
{
for (int i = 0; i < singleLegs.Count; i++)
{
var distanceIKtoLegLocal = Vector3.Distance(singleLegs[i].transform.localPosition, singleLegsIK[i].transform.localPosition);

if (distanceIKtoLegLocal > distanceToFixStep)
{
//singleLegs[i].transform.position = singleLegsIK[i].transform.position;
singleLegs[i].transform.position = Vector3.Lerp(singleLegs[i].transform.position, singleLegsIK[i].transform.position, Time.deltaTime * speedSyncLegs);
singleLegsTarget[i] = singleLegsIK[i].transform.position;
singleLocalTarget[i] = singleLegsIK[i].transform.position;
}
}
}
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
Found, there is a calculation error in my code, I am calculating in world when I have to calculate locally. Delete the task present in the script, it will be useless and it is not done in the right way.
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
ok thanks
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
As you can see, sometimes the red cube remains frozen.
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
My bug
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
11 replies
CC#
Created by Maxime66410 on 6/27/2023 in #help
✅ [Resolved] [Unity] Procedural animation for a crab with Rigging animation & Inverse kinematic
11 replies