Skip to content

Commit

Permalink
Update BulbDynamicOccluder.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Sep 16, 2024
1 parent b2576d6 commit 18c9a2d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/22.0/BulbDynamicOccluder.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@ Adds an occlusion edge (a shadow-casting line) to the occluder. Edges should be

 

## .AddCircle

`.AddEdge(radius, [x=0], [y=0], [edges=24])`

**Returns:** N/A (`undefined`)

|Argument |Datatype|Purpose |
|---------|--------|----------------------------------------------------------|
|`radius` |number |Radius of the circle to add to the occluder |
|`[x]` |number |x-coordinate of the centre of the circle. Defaults to `0` |
|`[y]` |number |y-coordinate of the centre of the circle. Defaults to `0` |
|`[edges]`|number |Number of edges to create for the circle. Defaults to `24`|

Helper function to add a circle to the occluder. The circle will be made of multiple individual straight edges.

 

## .ClearEdges

`.ClearEdges()`
Expand Down

0 comments on commit 18c9a2d

Please sign in to comment.