Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function donut2(Vp, Vd, r, littleangle) --Returns the position for the create to be spawned at
- --Vp is the position on the circle
- --Vd is the direction vector
- --r is the radius of the donut spirals
- --littleangle is the position on those little spirals, should be apparent
- Vd:setlength(1)
- local x
- local y
- local z
- y = r * sin(littleangle) --Vertical
- x = Vd.x cos(littleangle) --Horizontal
- z = Vd.z cos(littleangle) --Horizontal
- Vp.set(Vp.x + x, Vp.y + y, Vp.z + z)
- return Vp
- end
Advertisement
Add Comment
Please, Sign In to add comment