3D Lego Bricks

lego-bricks

In this blog post we will use Glowscript to create a 3D animation representing the various Lego bricks.

Our aim is to recreate bricks by joining several cubes and cylinders (studs) together. We will then create a compound object to join these 3D shapes together in a single object (brick). Finally using an infinite while loop we will animate/rotate the brick around itself.

Here is our 3D animation: (Use Google Chrome to preview this animation)


Right Click on the animation to change the view point (rotate camera angle).

Find out more…


To learn more about all the instructions you can use in GlowScript/VPython, use this on-line documentation.

Your task:


Create and animate different types of Lego Bricks. Combine these bricks to recreate one of the following Christmas trees!

unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 3.9 / 5. Vote count: 8

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: , , ,