Jump to content
Developer Wiki and Function Reference Links ×

Letting a line object bounce from a 2D poly boundary question


RvG

Recommended Posts

Hi All,

This is my first post on the forum and I wanted to ask you if the following idea is possible within Marionette.

This is what I want it to do:

From a given "source" within a given 2D poly, I want Marionette to generate simplfied "lightning rays" (in the form of a line object). Starting from the source, with a given angle and let it reflect (maximum 4 times) from the bounadries of the 2D poly. According to the law of reflection, the angle of incidence equals the angle of reflection (see picture).

Is Marionette capable of such a task? If so, can you give me any starting point?

Thanks in advance

Roel

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...