Question: I'm using A-frame to create a 3d experience but I'm having trouble figuring out how I can make this entity pictured above scale down every


I'm using A-frame to create a 3d experience but I'm having trouble figuring out how I can make this entity pictured above scale down every time I click on it. Basically, I need something that will allow the user to click on the primitive triangle, and every time they click on it gets smaller. Is there a way I can implement javascript to enable this functionality?

14 15

I'm using A-frame to create a 3d experience but I'm having trouble figuring out how I can make this entity pictured above scale down every time I click on it. Basically, I need something that will allow the user to click on the primitive triangle, and every time they click on it gets smaller. Is there a way I can implement javascript to enable this functionality?

The geometric shape exists within a scene built in html.



below is the entity im trying to scale down and what the scene looks like when my code goes live
image text in transcribed
image text in transcribed

14 15

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!