There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in Language Help.
Agree with a comment or answer? Like () to up-vote the contribution!
i am trying the lego piece challenge but i am unable to make it as it shown, i didn’t able to set the angles properly… please anybody help me with that!!!
There’s a supermedium discord server where a guy share this code with me. I highly recommend you joining in. He is using child-figures (something familiar to all of you because of knowing HTML) and same happens with a-frame.
If any of you guys have SO I recommend you posting it there, for future people having the same issue just googling for getting the solution. I still don’t have but I should sign up. Next time I will do it.
I don’t know if it is the solution but it is a solution to the AFRAME Lego piece. I was getting rather frustrated with the limited transform tool the unit introduced us to… thinking there was a solution in the beginner building blocks. Spoiler Alert Maybe No?
First stop was here and @hrithikarya was partially on the right path with the rotation but I felt like the CC piece still looked a little different than that. So I fiddled.
This is what rendered in my browser… Now granted that might be a me problem … but I think too your solution needs a color tag in the a cylinder. Equally they map on to each other with the given coordinates also map on to each other ??! I did however, take your advice and read through the documentation…
The documentation on Primitives and specifically noticed the example code for cylinders in the had a height and radius dimension SO:
That’s what I came up with. I think I could still tinker with the scales and heights and what not. I also found it helpful to use a different color whilst tinkering with the cylinders instead of all red everything.
Thank you everyone for the comments. It’s 2024 now and I’m so happy these were here as I start my journey with A-Frame. I took a first stab at it and this was the code I came up with:
Then, I came here and saw all the helpful info and made a few changes and I’m happy with the result. It’s not the same but baby steps thanks @ngwolfhare since most of my enhancements to the code were using your code snippets.