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: ( ͡° w ͡°) surface detection

Previous Thread :: Next Thread 
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
06 Dec 2015 10:27 PM
:V since I am a lazy person and the most annoying part of being a scripter is doing math, I was just going to ask if any of you pepes know any good open source material that can do the following

>generate a CFrame that is on the surface of an object for both wedges and corner wedges (mayB cylinders, spheres and normal blocks r ez tho)

is pretty spooki request
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
06 Dec 2015 11:36 PM
u wot m8

u mean the edges/vertices?
or just randomly on the surfaces?



http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire()
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Dec 2015 11:39 PM
For wedges you can just find the angle (atan(size.Y/size.Z)) and rotate the part along the x-axis by that much and whatever.
Cylinders are really as easy as parts, just add the size of that axis.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Dec 2015 11:42 PM
Woops I'm dumb, the angle would be .Y/.X pretty sure
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