Physics element surface catch shadows

I was working on a project where a basketball bounces up down and tried to manually create shadow and thought wouldn’t it be great if the ball had a shadow while bouncing to get that realistic sense within the physics api?

Could this be done with JavaScript?

Also since I don’t see the physical ball bouncing in the timeline I can’t really manually create a shadow.

Probably,

I would think you can observe the position of the ball in the scene.
And have another ellipse follow it on a single plane ( left position ) And depending onthe balls top the ellipse would shrink/grow and fade/darken

1 Like

Limited to one plane:
3D-Shadow.hype.zip (50,4 KB)

5 Likes

Really Nice!!

Thank you Max. I just msged you, pls take a look.

Here is a version that includes a function to stop the shadow following
3D-Shadow 2.hype.zip (56,5 KB)

The destroy() function is on a button but can also be called via the timeline.

I called the functions init and destroy but startFollowShadow and stopFollowShadow would be much more explanatory… but as long as it works. Next time :wink:

2 Likes