Explorar o código

Lint corrections

Guide %!s(int64=6) %!d(string=hai) anos
pai
achega
c6c1caa2e8

+ 2 - 2
dist/preview release/what's new.md

@@ -6,8 +6,8 @@
 - Added support for [parallel shader compilation](https://www.khronos.org/registry/webgl/extensions/KHR_parallel_shader_compile/) ([Deltakosh](https://github.com/deltakosh))
 - Added [Object Based Motion Blur](http://doc.babylonjs.com/how_to/using_motionblurpostprocess) post-process ([julien-moreau](https://github.com/julien-moreau))
 - Added [support for AmmoJS](https://doc.babylonjs.com/how_to/using_the_physics_engine) as a physics plugin (Composite objects, motors, joints) ([TrevorDev](https://github.com/TrevorDev))
-  - Added support for soft bodies in Ammo physics plugin. [Doc](https://doc.babylonjs.com/how_to/soft_bodies) ([JohnK](https://github.com/
-  - Added support for [Convex Hull Impostor][https://github.com/kripken/ammo.js/blob/master/bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.h] using Ammo.js plugin ([MackeyK24](https://github.com/mackeyk24))BabylonJSGuide))
+  - Added support for soft bodies in Ammo physics plugin. [Doc](https://doc.babylonjs.com/how_to/soft_bodies) ([JohnK](https://github.com/BabylonJSGuide))
+  - Added support for [Convex Hull Impostor][https://github.com/kripken/ammo.js/blob/master/bullet/src/BulletCollision/CollisionShapes/btConvexHullShape.h] using Ammo.js plugin ([MackeyK24](https://github.com/mackeyk24))
 - Added support for [WebXR](https://doc.babylonjs.com/how_to/webxr) ([TrevorDev](https://github.com/TrevorDev))
   - Add customAnimationFrameRequester to allow sessions to hook into engine's render loop ([TrevorDev](https://github.com/TrevorDev))
   - camera customDefaultRenderTarget to allow cameras to render to a custom render target (eg. xr framebuffer) instead of the canvas ([TrevorDev](https://github.com/TrevorDev))

+ 1 - 1
src/Physics/Plugins/ammoJSPlugin.ts

@@ -1156,7 +1156,7 @@ export class AmmoJSPlugin implements IPhysicsEnginePlugin {
      * @param otherImpostor, rigid impostor as the anchor
      * @param width, ratio across width from 0 to 1
      * @param height, ratio up height from 0 to 1
-     * @param influenece, the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech
+     * @param influence, the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech
      * @param noCollisionBetweenLinkedBodies, when true collisions between soft impostor and anchor are ignored; default false
      */
     public appendAnchor(impostor: PhysicsImpostor, otherImpostor: PhysicsImpostor, width: number, height: number, influence: number = 1, noCollisionBetweenLinkedBodies: boolean = false) {

+ 3 - 3
src/Physics/physicsImpostor.ts

@@ -950,11 +950,11 @@ export class PhysicsImpostor {
     /**
      * Add an anchor to a soft impostor
      * @param otherImpostor, rigid impostor as the anchor
-     * @param noCollisionBetweenLinkedBodies, when true collisions between soft impostor and anchor are ignored; default false
-     * @param influenece, the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech.
      * @param width, ratio across width from 0 to 1
      * @param height, ratio up height from 0 to 1
-     * @returns the soft imposter
+     * @param influence, the elasticity between soft impostor and anchor from 0, very stretchy to 1, no strech
+     * @param noCollisionBetweenLinkedBodies, when true collisions between soft impostor and anchor are ignored; default false
+     * @returns impostor, the soft imposter
      */
     public addAnchor(otherImpostor: PhysicsImpostor, width: number, height: number, influence: number, noCollisionBetweenLinkedBodies: boolean): PhysicsImpostor {
         if (!this._physicsEngine) {