void MoveToNormal() { var vSpeed = m_vDirection * GetMoveSpeed(); { SetLocalPosition( SHPhysics.CalculationEuler( m_pInfo.m_vForce, GetLocalPosition(), ref vSpeed, m_pInfo.m_fMass)); } SetSpeed(vSpeed); }
private void OnUpdateToDie() { var vSpeed = GetSpeed(); { SetLocalPosition( SHPhysics.CalculationEuler( SHPhysics.m_vGravity * 500.0f, GetLocalPosition(), ref vSpeed, 1.0f)); } SetSpeed(vSpeed); SetLocalScale(GetLocalScale() * 0.99f); if (-1000.0f > GetLocalPosition().y) { SetActive(false); } }