Disallowed movement - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Disallowed movement (/thread-2202.html) Pages:
1
2
|
RE: Disallowed movement - Seadragon91 - 11-14-2015 The colon doesn't matter. Looking at the coords, I think the problem is the Y coord. local bblock = cBoundingBox(Vector3d(-372, 218, 131), Vector3d(-377, 220, 130)) You have 218 and 220, that means the player has to be in the height between 218 and 220, to be trying to walk into the box. Change 218 to 0 for example and test it again. RE: Disallowed movement - Bobstergaming - 11-15-2015 *Sigh* RE: Disallowed movement - NiLSPACE - 11-15-2015 I believe the problem is that the boundingbox expects the coordinates to be sorted. Try switching the Z coordinates. That way the lowest coordinates will be The first parameter, and the higher parameters are the second parameter, RE: Disallowed movement - xoft - 11-18-2015 First of all you should make the box large, say 50 x 50 x 50 blocks, so that you can actually debug it, see if it works. Only then, after verifying that it works, you should twiddle the coords. And yes, the cBoundingBox expects the coords to be sorted, the first vector's coords should each be less than the second vector's one. RE: Disallowed movement - Bobstergaming - 11-18-2015 (11-18-2015, 04:28 AM)xoft Wrote: First of all you should make the box large, say 50 x 50 x 50 blocks, so that you can actually debug it, see if it works. Only then, after verifying that it works, you should twiddle the coords. Works a treat! (Although somehow it broke external connection) It might be worth outlining the fact that cBoundingBox expects the cords to be sorted RE: Disallowed movement - xoft - 11-18-2015 The documentation does say "min" and "max" for the coord parameters. RE: Disallowed movement - NiLSPACE - 11-18-2015 Perhaps we should add a Sort function just like in cCuboid? RE: Disallowed movement - xoft - 11-18-2015 Or the constructor should sort the coords automatically? |