예제 #1
0
파일: Actor.cs 프로젝트: weijunhu/vs
    public virtual void Move()
    {
        CustomTransform mTrans       = GetComponent <CustomTransform>();
        CustomTransform mRotateTrans = RotateTransform.GetComponent <CustomTransform>();
        CustomVector3   temp;

        FixedPointF x = CustomMath.GetCos(mRotateTrans.Angle);
        FixedPointF z = CustomMath.GetSin(mRotateTrans.Angle);

        temp.x = x * Speed * LockStepConfig.mRenderFrameRate;
        temp.y = new FixedPointF(0);
        temp.z = z * Speed * LockStepConfig.mRenderFrameRate;

        mTrans.LocalPosition += temp;
    }