diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..51a4c46 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 KeSuave + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/examples/SphereStack.ts b/src/examples/SphereStack.ts index b02450d..88c6b7e 100644 --- a/src/examples/SphereStack.ts +++ b/src/examples/SphereStack.ts @@ -15,7 +15,7 @@ const sphereStackScene = (k: KAPLANCKCtx) => () => { k.kpEdgeShape({ v1: new Vec2(-40, 0), v2: new Vec2(40, 0), - draw: false, + draw: true, }), k.kpFixture({ density: 0 }), ]); diff --git a/src/lib/components/Position.ts b/src/lib/components/Position.ts index ba45d86..97c4b1f 100644 --- a/src/lib/components/Position.ts +++ b/src/lib/components/Position.ts @@ -16,7 +16,7 @@ export interface KPPosComp extends Comp { * Sets the position of the object. * * @param {Vec2Value} pos - * @param {boolean} fromBody This is an internal flag that states it was updated by the body + * @param {boolean} [fromBody=false] This is an internal flag that states it was updated by the body */ setKPPosition(pos: Vec2Value, fromBody?: boolean): void; /** diff --git a/src/lib/components/Rotate.ts b/src/lib/components/Rotate.ts index b8f4daf..dda0221 100644 --- a/src/lib/components/Rotate.ts +++ b/src/lib/components/Rotate.ts @@ -13,7 +13,7 @@ export interface KPRotateComp extends Comp { * Sets the rotation angle of the object in radians. * * @param {number} angle - * @param {boolean} fromBody This is an internal flag that states it was updated by the body + * @param {boolean} [fromBody=false] This is an internal flag that states it was updated by the body */ setKPAngle(angle: number, fromBody?: boolean): void;