mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Detail stretch
This commit is contained in:
parent
b5a4c9f7ca
commit
2904af39d1
@ -98,7 +98,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
prop.transform.rotation = go.transform.TransformRotation(rot);
|
prop.transform.rotation = go.transform.TransformRotation(rot);
|
||||||
}
|
}
|
||||||
|
|
||||||
prop.transform.localScale = detail.scale != 0 ? Vector3.one * detail.scale : prefab.transform.localScale;
|
prop.transform.localScale = detail.stretch ?? (detail.scale != 0 ? Vector3.one * detail.scale : prefab.transform.localScale);
|
||||||
|
|
||||||
prop.SetActive(true);
|
prop.SetActive(true);
|
||||||
|
|
||||||
|
|||||||
5
NewHorizons/External/Modules/PropModule.cs
vendored
5
NewHorizons/External/Modules/PropModule.cs
vendored
@ -200,6 +200,11 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DefaultValue(1f)] public float scale = 1f;
|
[DefaultValue(1f)] public float scale = 1f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Scale each axis of the prop. Overrides `scale`.
|
||||||
|
/// </summary>
|
||||||
|
public MVector3 stretch;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// If this value is not null, this prop will be quantum. Assign this field to the id of the quantum group it should be a part of. The group it is assigned to determines what kind of quantum object it is
|
/// If this value is not null, this prop will be quantum. Assign this field to the id of the quantum group it should be a part of. The group it is assigned to determines what kind of quantum object it is
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user