AggrorJorn Posted May 1, 2010 Share Posted May 1, 2010 I am trying out the PointVisible command. I don't get any errors but neither getting the required results. I tried several parameters for the PointVisible command. p1= cube1:GetPosition(1) p2= cube2:GetPosition(1) info = 0 visible = PointVisible(p1,p2,0,0,0) if visible ==1 then info = 1 end fw:Update() fw:Render() SetBlend(1) if info == 1 then DrawText("Point is visible",0,40) end SetBlend(0) Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted May 1, 2010 Share Posted May 1, 2010 If your point is "inside" the cubes then they may well be hidden from each other, try hiding the cubes before the check and showing them after to see if thats the case. but getting the position of the cube will take its origin, normally at its centre. Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
AggrorJorn Posted May 1, 2010 Author Share Posted May 1, 2010 Thanks Marley, That was the problem, because the pivot (the Vec3) was actually inside the cube. That way the 2 points couldn't see each other. Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted May 1, 2010 Share Posted May 1, 2010 Youre welcome, glad it worked Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.