Unity 6 Upgrade + Solid Gravity Surface
Upgraded Unity version to 6000.1.10f1 Rewrote gravity surface shader to use shader environment vars for placement + various compatibility fixes
This commit is contained in:
parent
4584211fd8
commit
7561c09edc
90 changed files with 53752 additions and 1422 deletions
|
|
@ -16,7 +16,7 @@ public class GenerateSphere : MonoBehaviour {
|
|||
if (go)
|
||||
{
|
||||
go.transform.SetParent(transform);
|
||||
go.GetComponent<Rigidbody>().velocity = Random.insideUnitSphere * 10f;
|
||||
go.GetComponent<Rigidbody>().linearVelocity = Random.insideUnitSphere * 10f;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ public class GenerateSphere : MonoBehaviour {
|
|||
if ( go )
|
||||
{
|
||||
go.transform.SetParent(transform);
|
||||
go.GetComponent<Rigidbody>().velocity = Camera.main.transform.TransformVector(Quaternion.Euler(Random.Range(-30f, 10f), 0f, 0f) * Vector3.forward * Random.Range(10f, 100f));
|
||||
go.GetComponent<Rigidbody>().linearVelocity = Camera.main.transform.TransformVector(Quaternion.Euler(Random.Range(-30f, 10f), 0f, 0f) * Vector3.forward * Random.Range(10f, 100f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue