fix: the trail is incorrect in SimulationSpace.Local
parent
63b36a45b9
commit
9313489552
|
@ -241,6 +241,10 @@ namespace Coffee.UIExtensions
|
||||||
var hash = currentPs.GetMaterialHash(true);
|
var hash = currentPs.GetMaterialHash(true);
|
||||||
if (hash != 0)
|
if (hash != 0)
|
||||||
{
|
{
|
||||||
|
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local
|
||||||
|
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
|
||||||
|
: matrix;
|
||||||
|
|
||||||
var m = MeshHelper.GetTemporaryMesh();
|
var m = MeshHelper.GetTemporaryMesh();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue