Ejemplo n.º 1
0
    public static MtRotateAround Create(float duration, Vector3 point, Vector3 axis, float angle)
    {
        MtRotateAround rotateAround = new MtRotateAround();

        if (rotateAround.InitWithDuration(duration, point, axis, angle))
        {
            return(rotateAround);
        }
        return(null);
    }
Ejemplo n.º 2
0
    public override MtICloneable Clone()
    {
        //no copy constructor
        MtRotateAround rotateAround = new MtRotateAround();

        if (m_is3D)
        {
            rotateAround.InitWithDuration(m_duration, m_point, m_axis, m_deltaAngle);
        }
        return(rotateAround);
    }