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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|