forked from LeenkxTeam/LNXSDK
		
	Update leenkx/Sources/leenkx/trait/physics/bullet/PhysicsWorld.hx
This commit is contained in:
		| @ -420,7 +420,8 @@ class PhysicsWorld extends Trait { | ||||
| 		var rb: RigidBody = null; | ||||
| 		var hitInfo: Hit = null; | ||||
|  | ||||
| 		if (rayCallback.hasHit()) { | ||||
| 		var rc: bullet.Bt.RayResultCallback = rayCallback; | ||||
| 		if (rc.hasHit()) { | ||||
| 			#if js | ||||
| 			var co = rayCallback.get_m_collisionObject(); | ||||
| 			var body = untyped bullet.Bt.Ammo.btRigidBody.prototype.upcast(co); | ||||
| @ -480,7 +481,8 @@ class PhysicsWorld extends Trait { | ||||
|  | ||||
| 		var hitInfo: ConvexHit = null; | ||||
|  | ||||
| 		if (convexCallback.hasHit()) { | ||||
| 		var cc: bullet.Bt.ClosestConvexResultCallback = convexCallback; | ||||
| 		if (cc.hasHit()) { | ||||
| 			#if js | ||||
| 			var hit = convexCallback.get_m_hitPointWorld(); | ||||
| 			convexHitPointWorld.set(hit.x(), hit.y(), hit.z()); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user