Procházet zdrojové kódy

Ammo physics raycast fix

Related to https://forum.babylonjs.com/t/ammojsplugin-raycast-function-broken/2190
Borut Balazek před 7 roky
rodič
revize
07856a5c44
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/Physics/Plugins/ammoJSPlugin.ts

+ 2 - 0
src/Physics/Plugins/ammoJSPlugin.ts

@@ -86,6 +86,8 @@ export class AmmoJSPlugin implements IPhysicsEnginePlugin {
 
         this._tmpAmmoConcreteContactResultCallback = new this.bjsAMMO.ConcreteContactResultCallback();
         this._tmpAmmoConcreteContactResultCallback.addSingleResult = () => { this._tmpContactCallbackResult = true; };
+        
+        this._raycastResult = new PhysicsRaycastResult();
 
         // Create temp ammo variables
         this._tmpAmmoTransform = new this.bjsAMMO.btTransform();