mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-25 21:10:57 +00:00
- Added a slight rotation to the sphere
This commit is contained in:
parent
8da5556915
commit
d6f894d453
@ -260,6 +260,7 @@ MonoBehaviour:
|
|||||||
SpherePrototype: {fileID: 140654, guid: 646dd6566f9e1374caa3af8ad37c43d3, type: 2}
|
SpherePrototype: {fileID: 140654, guid: 646dd6566f9e1374caa3af8ad37c43d3, type: 2}
|
||||||
PointsAmount: 400
|
PointsAmount: 400
|
||||||
SphereRadius: 7
|
SphereRadius: 7
|
||||||
|
rotationSpeed: .699999988
|
||||||
--- !u!1 &1126063559
|
--- !u!1 &1126063559
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@ -150,4 +150,4 @@ Material:
|
|||||||
data:
|
data:
|
||||||
first:
|
first:
|
||||||
name: _TintColor
|
name: _TintColor
|
||||||
second: {r: .257352948, g: .10029196, b: .233522967, a: .501960814}
|
second: {r: .0901960805, g: .0823529437, b: .0862745121, a: .501960814}
|
||||||
|
|||||||
@ -7,6 +7,7 @@ public class Sphere : MonoBehaviour
|
|||||||
public GameObject SpherePrototype;
|
public GameObject SpherePrototype;
|
||||||
public int PointsAmount = 50;
|
public int PointsAmount = 50;
|
||||||
public float SphereRadius = 1f;
|
public float SphereRadius = 1f;
|
||||||
|
public float rotationSpeed = 0.7f;
|
||||||
|
|
||||||
private GameObject[] nodes;
|
private GameObject[] nodes;
|
||||||
|
|
||||||
@ -16,6 +17,11 @@ public class Sphere : MonoBehaviour
|
|||||||
AssignLinks();
|
AssignLinks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
transform.Rotate(Vector3.one * Time.deltaTime * rotationSpeed);
|
||||||
|
}
|
||||||
|
|
||||||
private void InstantiateNodes()
|
private void InstantiateNodes()
|
||||||
{
|
{
|
||||||
/* Sphere uniform distribution using the spiral method with the golden angle
|
/* Sphere uniform distribution using the spiral method with the golden angle
|
||||||
|
|||||||
@ -26,7 +26,7 @@ Transform:
|
|||||||
m_GameObject: {fileID: 140654}
|
m_GameObject: {fileID: 140654}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -1.38999999, y: -.0725698322, z: -1.32421875}
|
m_LocalPosition: {x: -1.38999999, y: -.0725698322, z: -1.32421875}
|
||||||
m_LocalScale: {x: .100000001, y: .100000001, z: .100000001}
|
m_LocalScale: {x: .5, y: .5, z: .5}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user