1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How can i get the smaller Vector3 between 2 Vector3 ?

Discussion in 'Facepalm' started by friscowz, Aug 21, 2017.

  1. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Im trying to get the smaller Vector3 betweet 2 Vecotr3 (Position).
     
  2. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Yo ima just do a function to get it because i think i didnt explain what i need.
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    smaller how?
     
  4. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    Basiclly im making a claim wand and i need to get like a Positive one and negative one for > and < ...
     
  5. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    still not really understanding what you want here...
     
  6. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    ikr i dont how to explain this cuz its really hard.
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Are you defining smaller to be closer to 0 or the furthest negative from 0?
     
  8. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    so let me get some assumptions out:
    Do you want to get the space/blocks between the Vector3s? just the blocks between them? the blocks^3 they define?
    Do you want check if someone is inside the area defined by Vector3s?
     
  9. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    lol im not a noob, BASICLLY:
    i have 2 Vector3, i need to get if the a block is between those 2 Vector3
     
  10. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    i have 2 Vector3, i need to get if the a block is between those 2 Vector3
     
  11. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    so you want to iterate through alltheblocks between the two Vector3s to check if there is a specific block between them? Or just if there is a block between them?
     
  12. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    if i knew whos the Smaller i can do that only with ">" and "<"
     
  13. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    I can help you with that, but please let me know what exactly you want to do:
    check if a SPECIFIC (blockid, other stuff) Block is between the Vectors
    OR
    check if ANY Block is between the Vectors?
     
  14. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    try do min (vec1->x,vec2->x) to z
    save these values onto another vec say call it minvec
    do the same but now max, name it maxvac
    now you have both!!!
     
  15. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    yo i did that but i tried that the first time, but this isn't how it works :c
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.