Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(i <- 0 until vertices) {
- val theta = i * 2 * math.Pi / vertices.toFloat
- val xOff = radius * math.cos(theta)
- val zOff = radius * math.sin(theta)
- Vertex(x + xOff, y, z + zOff)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement