Author Topic: Need some help with VCE  (Read 603 times)

I know a lot about VCE but I wanted to ask one thing...
Is it possible to use VCE to compare the player's location to a brick's location?


Yes

<var:pl:posx>
<var:pl:posy>
<var:pl:posz>

<var:br:posx>
<var:br:posy>
<var:br:posz>

I made a little test with x and y, made a 2D distance check. Probably could have made it a lot smaller, because I changed how it worked mid-way through, realizing I was doing it wrong.


no.

Yes

<var:pl:posx>
<var:pl:posy>
<var:pl:posz>

<var:br:posx>
<var:br:posy>
<var:br:posz>

Proof that you should disregard here people because they are constantly wrong.


I made a little test with x and y, made a 2D distance check. Probably could have made it a lot smaller, because I changed how it worked mid-way through, realizing I was doing it wrong.

Do you think you could make something easier? Because I need it kinda simple.
(Sorry for double post, edit button doesn't show up :/)

Do you think you could make something easier? Because I need it kinda simple.
I can try, but if you think about it logically, it's just using the Distance formula. (Pythagorean theorem)

Quote


x1 = brick posx
x2 = player posx

x2 - x1
x22

y1 = brick posy
y2 = player posy

y2 - y1
y22

x2 + y2

Square Root x2

if you added z1 as brick posz, and z2 as player posz, subtracted 1 from 2, gave it a power of 2, then added that to x2 + y2, THEN get the square root of x2, you could have a 3D distance check.

oh ew, math. Why can't computers, scripting, and events be as easy as.... eating a doughnut. That would be nice...

oh ew, math. Why can't computers, scripting, and events be as easy as.... eating a doughnut. That would be nice...
Because then we would be eating our computers.