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 » Scripters
Home Search
 

Re: Parts Overlap

Previous Thread :: Next Thread 
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 05:18 PM
How would I detect if two parts were physically overlapping like the event wouldn't fire if the bricks were only touching just if they were overlapping
Report Abuse
AssassinGirlTwo is not online. AssassinGirlTwo
Joined: 01 Dec 2015
Total Posts: 6
25 Dec 2015 05:19 PM
Use solid model.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 05:21 PM
what..... noo
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 07:44 PM
bump
Report Abuse
DivinePheonix is not online. DivinePheonix
Joined: 30 Mar 2011
Total Posts: 11190
25 Dec 2015 07:54 PM
Use changed as your listener and compare wat u need
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 08:47 PM
anything else plz
Report Abuse
QJD1996 is not online. QJD1996
Joined: 20 Jan 2009
Total Posts: 1472
25 Dec 2015 08:50 PM
Do they have to be completely overlapping, or just a little bit?

You could do something that checks the X and Z positions, and ignores the Y.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 08:53 PM
just a little bit and yeah i know i could use positioning but that seems very tedious and i was just wondering if anyone knew another way
Report Abuse
Daftcube is not online. Daftcube
Joined: 10 Jan 2010
Total Posts: 275
25 Dec 2015 09:17 PM
I had this same problem. You can check out my update thread here: http://forum.roblox.com/Forum/ShowPost.aspx?PostID=180223221
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
25 Dec 2015 09:33 PM
thanks!!!!!
Report Abuse
Daftcube is not online. Daftcube
Joined: 10 Jan 2010
Total Posts: 275
25 Dec 2015 09:34 PM
No problem! Don't forget to check out the original thread too. There are some cool API functions to learn about in there!
Report Abuse
UnstableScript0 is not online. UnstableScript0
Joined: 21 Dec 2015
Total Posts: 1189
25 Dec 2015 09:36 PM
basePart:GetTouchingParts()
basePart:GetConnectedParts()
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
25 Dec 2015 10:02 PM
Region3
Report Abuse
nox7 is not online. nox7
Joined: 29 Aug 2008
Total Posts: 27467
25 Dec 2015 10:03 PM
function partInPart(p1, p2)
return math.abs(p2.CFrame:pointToObjectSpace(p1.CFrame.p).x) <= p2.Size.x/2 and math.abs(p2.CFrame:pointToObjectSpace(p1.CFrame.p).y) <= p2.Size.y/2 and math.abs(p2.CFrame:pointToObjectSpace(p1.CFrame.p).z) <= p2.Size.z/2
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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