Skip to content

Commit

Permalink
Update BulbStaticOccluder.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Sep 16, 2024
1 parent aeffc11 commit b2576d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/22.0/BulbStaticOccluder.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,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 b2576d6

Please sign in to comment.