fix: the trail is incorrect in SimulationSpace.Local

This commit is contained in:
mob-sakai
2021-02-01 23:21:22 +09:00
parent 63b36a45b9
commit 9313489552

View File

@@ -241,6 +241,10 @@ namespace Coffee.UIExtensions
var hash = currentPs.GetMaterialHash(true);
if (hash != 0)
{
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
: matrix;
var m = MeshHelper.GetTemporaryMesh();
try
{