コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        transform.position = particle.Update(Time.deltaTime);

        foreach (HooksLaw.Particle part in spring.m_Particle)
        {
            spring.CalculateForce();
        }
    }
コード例 #2
0
ファイル: ParticleBehaviour.cs プロジェクト: RyanBates/Cloth
 public void FixedUpdate()
 {
     transform.position = particle.Update(Time.fixedDeltaTime);
 }