30 lines
545 B
C#
30 lines
545 B
C#
using UnityEngine;
|
|
|
|
namespace Mtree
|
|
{
|
|
public struct LeafCandidate
|
|
{
|
|
public Vector3 position;
|
|
|
|
public Vector3 direction;
|
|
|
|
public float size;
|
|
|
|
public float parentBranchLength;
|
|
|
|
public float distanceFromOrigin;
|
|
|
|
public bool isEnd;
|
|
|
|
public LeafCandidate(Vector3 pos, Vector3 dir, float size, float branchLength, float distanceFromOrigin, bool isEnd)
|
|
{
|
|
position = pos;
|
|
direction = dir;
|
|
this.size = size;
|
|
parentBranchLength = branchLength;
|
|
this.distanceFromOrigin = distanceFromOrigin;
|
|
this.isEnd = isEnd;
|
|
}
|
|
}
|
|
}
|