Skip to content

Commit

Permalink
doc: Typo Contraint to Constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
bfanger committed Mar 9, 2022
1 parent 461e21e commit 746a537
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ From a usage perspective it acts as a `writable(new Vec3(0, 4, 0))` but also all
- `$position = [1, 2, 3]`
- `$position.x = 1; $position.x = 2; $position.x = 3;`

## Forces and Contraints
## Forces and Constraints

As bodies can have multiple constrains and forces can affect multiple bodies it doesn't translate well to a component hierarchy. HTML also has this problem with `<input>`s and `<label>`s, svelte-cannon approach is based on the `id=` and `for=` solution:

Expand Down
4 changes: 2 additions & 2 deletions src/routes/constraints/double-pendulum.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
href="https://github.com/bfanger/svelte-cannon/blob/main/src/routes/constraints/double-pendulum.svelte"
/>
<svelte:head>
<title>Double pendulum - Simulated using cannon-es DistanceContraint</title>
<title>Double pendulum - Simulated using cannon-es DistanceConstraint</title>
<meta
name="description"
content="Double pendulum an example of the DistanceContraint, inspired by KiwiCo Glowing Pendulum"
content="Double pendulum an example of the DistanceConstraint, inspired by KiwiCo Glowing Pendulum"
/>
</svelte:head>

Expand Down
3 changes: 2 additions & 1 deletion src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
<li>
<a href="constraints/double-pendulum">Double pendulum</a>
<div class="description">
Example of a chaotic rich dynamic behavior - Wikipedia
Using the DistanceConstraint to "exhibit rich dynamic behavior -
<a href="https://en.wikipedia.org/wiki/Double_pendulum">Wikipedia</a>"
</div>
</li>
<li>
Expand Down

0 comments on commit 746a537

Please sign in to comment.