Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Need Help in understanding vec3 Vec3d vec2i etc. please.
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
TheRPGAdventurer

Need Help in understanding vec3 Vec3d vec2i etc. please.

By TheRPGAdventurer, May 6, 2017 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

TheRPGAdventurer    4

TheRPGAdventurer

TheRPGAdventurer    4

  • Dragon Slayer
  • TheRPGAdventurer
  • Members
  • 4
  • 642 posts
Posted May 6, 2017

I am looking for a tutorial or an explanation what these vectors do.

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1624

Choonster

Choonster    1624

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1624
  • 5050 posts
Posted May 6, 2017

They don't really do anything themselves, they're just vectors.that store 2 or more coordinates and provide methods for various vector operations (e.g. addition, subtraction, normalisation, dot and cross product).

 

The number in the name is how many coordinates the vector stores (i.e. the number of dimensions). The letter after the number is the numerical data type used by the vector, e.g. i for int, d for double, f for float.

  • Quote

Share this post


Link to post
Share on other sites

TheRPGAdventurer    4

TheRPGAdventurer

TheRPGAdventurer    4

  • Dragon Slayer
  • TheRPGAdventurer
  • Members
  • 4
  • 642 posts
Posted May 8, 2017
Just now, Choonster said:

They don't really do anything themselves, they're just vectors.that store 2 or more coordinates and provide methods for various vector operations (e.g. addition, subtraction, normalisation, dot and cross product).

 

The number in the name is how many coordinates the vector stores (i.e. the number of dimensions). The letter after the number is the numerical data type used by the vector, e.g. i for int, d for double, f for float.

Another question, why was vec3 removed in 1.10.2?

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1624

Choonster

Choonster    1624

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1624
  • 5050 posts
Posted May 8, 2017
2 minutes ago, TheRPGAdventurer said:

Another question, why was vec3 removed in 1.10.2?

 

It was renamed to Vec3d in 1.9 for consistency with the other vector class names.

  • Quote

Share this post


Link to post
Share on other sites

TheRPGAdventurer    4

TheRPGAdventurer

TheRPGAdventurer    4

  • Dragon Slayer
  • TheRPGAdventurer
  • Members
  • 4
  • 642 posts
Posted May 11, 2017
Just now, Choonster said:

 

It was renamed to Vec3d in 1.9 for consistency with the other vector class names.

Another question, what is the best substitute from create vector helper, you see, I am helping the Dragon Mounts Author fix the player's position while riding the dragon, but in 1.10 they removed UpdateRiderPostion method in the Entity.class, the author and many of his helpers struggle to fix the bug. ;) 

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1624

Choonster

Choonster    1624

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1624
  • 5050 posts
Posted May 11, 2017
9 minutes ago, TheRPGAdventurer said:

Another question, what is the best substitute from create vector helper,

 

Vec3.createVectorHelper was removed in 1.8 when the Vec3 constructor was made public. Just use the constructor directly.

  • Quote

Share this post


Link to post
Share on other sites

TheRPGAdventurer    4

TheRPGAdventurer

TheRPGAdventurer    4

  • Dragon Slayer
  • TheRPGAdventurer
  • Members
  • 4
  • 642 posts
Posted May 11, 2017
Just now, Choonster said:

 

Vec3.createVectorHelper was removed in 1.8 when the Vec3 constructor was made public. Just use the constructor directly.

thanks a lot man!

  • Quote

Share this post


Link to post
Share on other sites

Heltrato    1

Heltrato

Heltrato    1

  • Diamond Finder
  • Heltrato
  • Members
  • 1
  • 258 posts
Posted May 13, 2017

helpful tip use variables

 

Vec3d vecPoint = new Vec3d(fill up 3 paramaters here);

  • Quote

Share this post


Link to post
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.

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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • vMystic
      [1.12.2] plugin with id 'net.minecraftforge.gradle.forge' not found

      By vMystic · Posted 1 minute ago

      Ive tried googling for a long time and i cant find anything on this, Whenever I try to run gradlew setupDecompWorkspace I get the error plugin with id 'net.minecraftforge.gradle.forge' not found ive talked with someone and they said the people here can help me with this issue. Any suggestions?
    • Yanny7
      [1.14.4] Stone Age mod

      By Yanny7 · Posted 43 minutes ago

      v1.0.1 - added mammoth tusk item - added Mammoth entity - moved tools to mod group - integrated TheOneProbe - drying rack improved add/remove item - fixed Aquaduct connecting vertically
    • salvestrom
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By salvestrom · Posted 57 minutes ago

      I did not say at any point that your model should extend model entity.   This requires three classes. Your entity class should extend HorseEntity giving you access to all of the GUI, saddling and taming. Your render class should be adjusted to not be using the superfluous classy created, as I previously mentioned. Your model class needs to extend HorseModel – this is how you will inherit the animations and bulk of the model.   Note that AbstractHorseEntity does not have all of the code for horses, only the shared code between the various horse entities.
    • RyanGV95
      Forge Can't Install

      By RyanGV95 · Posted 1 hour ago

      I’ll give that a shot after I get off. Thanks so much!
    • solitone
      Distinguish singleplayer vs. multiplayer

      By solitone · Posted 2 hours ago

      So I would have ServerScriptItem and ClientScriptItem, both inheriting from ScriptItem, and I would register a ServerScriptItem object on the dedicated server and a ClientScriptItem object on the client?
  • Topics

    • vMystic
      0
      [1.12.2] plugin with id 'net.minecraftforge.gradle.forge' not found

      By vMystic
      Started 1 minute ago

    • Yanny7
      1
      [1.14.4] Stone Age mod

      By Yanny7
      Started 3 hours ago

    • DragonITA
      27
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started Monday at 10:06 AM

    • RyanGV95
      3
      Forge Can't Install

      By RyanGV95
      Started 4 hours ago

    • solitone
      14
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started December 5

  • Who's Online (See full list)

    • vMystic
    • ExitCore
    • diesieben07
    • KittRiderTV
    • Lithium941
    • DaemonUmbra
    • OdachiPlayz
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Need Help in understanding vec3 Vec3d vec2i etc. please.
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community