Slide 41
Slide 41 text
COPYRIGHT 2016 @ UNITY TECHNOLOGIES JAPAN
COPYRIGHT 2016 @ UNITY TECHNOLOGIES JAPAN
εΫϦϓτΛซ༻͢Δέʔεͷྫ
࠶ੜɾҰ࣌ఀࢭɾύϥϝʔλͷมߋ
w 1MBZ0O"XBLFϑϥάΛཱͯͳ͍ݶΓɺύʔςΟΫϧ࠶ੜ͠ͳ͍ɻ࠶ੜɺҰ࣌ఀࢭɺ࠶։ͳͲͷίϯτϩʔ
ϧجຊతʹ֎෦ͷεΫϦϓτ͔Βߦ͏͜ͱʹͳΔɻ6OJUZ·ͰεΫϦϓτ͔ΒΞΫηεͰ͖ͳ͍ύϥ
ϝʔλ͕ଟଘࡏ͍͕ͯͨ͠ɺͰ΄ͱΜͲͷมΛίϯτϩʔϧͰ͖ΔΑ͏ʹͳͬͨɻ
ͦͷଞ࣌ؒʹର͢Δॾʑ
w ૣૹΓεϩʔ࠶ੜ͍ͨ͠߹
1BSUJDMF4ZTUFN4JNVMBUF
ͷҾʹσϧλ
λΠϜʹมߋΛ༩͑ͨΛऔΔ͜ͱͰ࣮ݱ͢
Δɻ
w ·ͨɺϙʔζதͳͲʹλΠϜεέʔϧΛؾʹ
ͤͣʹಈ͔͍ͨ͠߹ಉ༷ɻӈλΠϜε
έʔϧΛແࢹ͢Δྫɻ
float lastTime;
void Start () {
lastTime = Time.realtimeSinceStartup;
}
void Update () {
float deltaTime = Time.realtimeSinceStartup - lastTime;
particle.Simulate(deltaTime, true, false);
lastTime = Time.realtimeSinceStartup;
}