generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Detecting if the space between 3 nodes is occupied.

Previous Thread :: Next Thread 
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
11 Jul 2012 08:32 PM
I've been working with triangle generation the past few days, and I can't seem to get a reliable method of checking if the space between 3 randomly placed nodes is occupied with a triangle or not.

The methods I've tried haven't worked very well, so does anyone have any suggestions on how I could do this properly?
Report Abuse
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
11 Jul 2012 08:38 PM
So it's known,

I've tried ray casting but I think it was set up wrong, It wouldn't always detect properly.
Report Abuse
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
11 Jul 2012 11:30 PM
[ Content Deleted ]
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
12 Jul 2012 12:04 AM
No External Links. if it's an Image, upload it as a Decal.
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
12 Jul 2012 12:33 AM
Maybe each time you create a triangle add it's coordinates to a table like
triangles = {{},{},{}}
triangles[1,2, and 3] being the 3 coordinates of a triangle

Also couldn't you run a loop through all the triangles seeing if one happened to have that position?
Report Abuse
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
12 Jul 2012 12:39 AM
Yes but they wont always have the same position even if they are in between the same 3 nodes. The way the function creates triangles it places the two triangles at different positions depending on the order you input the node into the function.

So the positions wont always be the same.
Report Abuse
killjoy37 is not online. killjoy37
Joined: 27 Aug 2008
Total Posts: 2821
12 Jul 2012 12:41 AM
I don't really understand what you are saying but I'm sure that you're sure that my idea won't work so.. Sorry. Good luck though
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image