粒子旋转

This commit is contained in:
SoulliesOfficial
2025-07-15 09:43:05 -04:00
parent bcd71d225e
commit def846042b
15 changed files with 16800 additions and 15881 deletions

View File

@@ -200,8 +200,7 @@ namespace Ichni.Editor
}
public DynamicUIEnumDropdown GenerateDropdown(IBaseElement baseElement, DynamicUISubcontainer subcontainer,
string title,
System.Type enumType, string parameterName)
string title, System.Type enumType, string parameterName)
{
DynamicUIEnumDropdown enumDropdown = Object
.Instantiate(EditorManager.instance.basePrefabs.enumDropdown, subcontainer.rect)
@@ -213,8 +212,7 @@ namespace Ichni.Editor
}
public DynamicUIStringListDropdown GenerateDropdown(IBaseElement baseElement, DynamicUISubcontainer subcontainer,
string title,
List<string> stringList, string parameterName)
string title, List<string> stringList, string parameterName)
{
DynamicUIStringListDropdown stringListDropdown = Object
.Instantiate(EditorManager.instance.basePrefabs.stringListDropdown, subcontainer.rect)

View File

@@ -241,9 +241,14 @@ namespace Ichni.RhythmGame
private void SetParticleRotation()
{
var mainModule = particle.main;
mainModule.startRotationX = particleRotation.x;
mainModule.startRotationY = particleRotation.y;
mainModule.startRotationZ = particleRotation.z;
float rotationX_InRadians = particleRotation.x * Mathf.Deg2Rad;
float rotationY_InRadians = particleRotation.y * Mathf.Deg2Rad;
float rotationZ_InRadians = particleRotation.z * Mathf.Deg2Rad;
mainModule.startRotationX = new ParticleSystem.MinMaxCurve(rotationX_InRadians);
mainModule.startRotationY = new ParticleSystem.MinMaxCurve(rotationY_InRadians);
mainModule.startRotationZ = new ParticleSystem.MinMaxCurve(rotationZ_InRadians);
}
public override void Refresh()