Jump to content
Korean Random

Math.Vector3 Multiplication Decomposition Calculation


ahwa

Recommended Posts

Math.Vector3 is how multiplied int or float

 

Math.Vector3(x, y, z) * 5 <------- int or float

 

x = x * 5

y = y * 5

z = z * 5

Decomposition Calculation It is like this???

Edited by ahwa
  • Upvote 1
Link to comment
Short link
Share on other sites

True (X,Z,Y), wrong (X,Y,Z)

This is the original

No wonder I have not hit exactly

 

I took it apart is calculated

 

            TMx, TMy, TMz = TargetMoved

            if __Player__.inputHandler.ctrlModeName == 'strategic':

                DC_Offset_X = ShotTime * TargetSpeed * round(TMx)

                DC_Offset_Y = ShotTime * TargetSpeed * round(TMy)

                DC_Offset_Z = ShotTime * TargetSpeed * round(TMz)

            else:

                DC_Offset_X = ShotTime * (TargetSpeed * 1.09) * TMx

                DC_Offset_Y = ShotTime * TargetSpeed * TMy

                DC_Offset_Z = ShotTime * (TargetSpeed * 1.09) * TMz

            AimOffset = Math.Vector3(DC_Offset_X, DC_Offset_Y, DC_Offset_Z)

            NTP = TargetPosition + AimOffset

 

Allowed to play

 

Thank you

  • Upvote 1
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...