Author Topic:  vrel vs prel  (Read 141 times)

0 Members and 1 Guest are viewing this topic.

Palladeonix

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
    • Awards
  • Xbox: ReaperZz176
vrel vs prel
« on: December 03, 2016, 08:43:04 AM »
what is the difference between vrel and prel? are there any other variants?

Platinum Dryym

  • Supreme Member
  • *****
  • Posts: 4140
  • What's yours is mine. ~TM's Resident Master Thief~
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site+300 posts 3 years on site+600 posts Site art contributions/TPs in-game/Contest winners 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: dryym
Re: vrel vs prel
« Reply #1 on: December 03, 2016, 09:38:14 AM »
I feel like this is handled pretty well in the documentation.

prel: is relative to your player's coordinates on the grid. If you are at 10,10,10 and do something with prel:1,1,1 it will perform the action at 11,11,11.

vrel: is relative to your viewpoint in an F,Y,R scheme. Forward, Y, Right.

It's harder to explain in a simple way.

There's also hvrel (Horizontal view relative), crel (Cursor relative), trel (Target relative), tvrel (Target view relative), And then even a few more that I haven't used yet.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

Palladeonix

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
    • Awards
  • Xbox: ReaperZz176
Re: vrel vs prel
« Reply #2 on: December 05, 2016, 02:01:46 PM »
Ahh, thank you :D

Redsparx

  • Jr. Member
  • **
  • Posts: 47
  • If it doesnt drop anything, it not worth killing.
    • View Profile
    • Awards
  • Xbox: Redsparx
Re: vrel vs prel
« Reply #3 on: December 10, 2016, 01:10:21 PM »
It is in a manner like this:
Vrel= view-relative; (Particle [vrel:0.25,0,0] [5] [vrel:3,0,0])  a particle is moving forward about 3mps, starting from half a block away from the players view.

Prel= player/point-Relative; (SetBlock [prel:0,-1,0] [sunblock]) This sets the block underneath the player's feet [since prel is based on the feet position) from whatever block is there to a sunblock.

That is just a simplified version.