add explosion VFX and explosion physics force

This commit is contained in:
in0finite 2020-06-21 14:15:20 +02:00
parent c56dad1950
commit 07d802ce8f
5 changed files with 41938 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2894e2899fe860745afbc810459e2cc2
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -102,3 +102,4 @@ MonoBehaviour:
explosionLeftoverPartsMass: 100
smokePrefab: {fileID: 100000, guid: c5d4e25823f45c946b9dd01264b40a1b, type: 3}
flamePrefab: {fileID: 100000, guid: 5b0110178dbbb784cab63b7529b07cc1, type: 3}
explosionPrefab: {fileID: 100010, guid: 2894e2899fe860745afbc810459e2cc2, type: 3}

View file

@ -30,6 +30,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
public GameObject smokePrefab;
public GameObject flamePrefab;
public GameObject explosionPrefab;

View file

@ -182,6 +182,7 @@ namespace SanAndreasUnity.Behaviours.Vehicles
// create explosion effect
Object.Instantiate(VehicleManager.Instance.explosionPrefab, this.transform.position, this.transform.rotation);
}