mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
Merge branch 'master' of https://github.com/ETSConjure/PixelSphinx
This commit is contained in:
commit
b714044b32
@ -12,6 +12,7 @@ public class PlanetManager : MonoBehaviour
|
|||||||
public bool CartierResetRatioSpeedRandomize = true;
|
public bool CartierResetRatioSpeedRandomize = true;
|
||||||
public float CartierMinRatio = 0.4f;
|
public float CartierMinRatio = 0.4f;
|
||||||
public float CartierMaxRatio = 2.0f;
|
public float CartierMaxRatio = 2.0f;
|
||||||
|
public float CartierStepSize = 0.25;
|
||||||
public GameObject WedgePrefab = null;
|
public GameObject WedgePrefab = null;
|
||||||
public List<Wedge> wedges = new List<Wedge>();
|
public List<Wedge> wedges = new List<Wedge>();
|
||||||
|
|
||||||
@ -88,7 +89,7 @@ public class PlanetManager : MonoBehaviour
|
|||||||
var index = GetWedgeIndex(thetaPlayerX);
|
var index = GetWedgeIndex(thetaPlayerX);
|
||||||
var w = wedges[index];
|
var w = wedges[index];
|
||||||
|
|
||||||
w.offset = w.offset - 0.25f;
|
w.offset = w.offset - CartierStepSize;
|
||||||
if (w.offset < CartierMinRatio)
|
if (w.offset < CartierMinRatio)
|
||||||
w.offset = 0.5f;
|
w.offset = 0.5f;
|
||||||
|
|
||||||
@ -99,7 +100,7 @@ public class PlanetManager : MonoBehaviour
|
|||||||
var indexOppose = GetWedgeOpposé(index);
|
var indexOppose = GetWedgeOpposé(index);
|
||||||
var v = wedges[indexOppose];
|
var v = wedges[indexOppose];
|
||||||
|
|
||||||
v.offset = v.offset + 0.25f;
|
v.offset = v.offset + CartierStepSize;
|
||||||
if (v.offset > CartierMaxRatio)
|
if (v.offset > CartierMaxRatio)
|
||||||
v.offset = 1.5f;
|
v.offset = 1.5f;
|
||||||
|
|
||||||
@ -224,7 +225,7 @@ public class PlanetManager : MonoBehaviour
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Wedge
|
public class Wedge
|
||||||
{
|
{
|
||||||
public float offset = 1.0f; //valeurs entre -1 et 1; -1 étant renfoncé, 0 position normale, et 1 vers l'extérieur
|
public float offset = 1.0f; //valeurs entre minRatio et maxRatio; < 1 étant renfoncé, 1 position normale, et > 1 vers l'extérieur
|
||||||
public float tMin = 0; //theta min et theta max : angle thetat de début et fin du cartier;
|
public float tMin = 0; //theta min et theta max : angle thetat de début et fin du cartier;
|
||||||
public float tMax = 0;
|
public float tMax = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user