Hi Mir, when I added the gun component to an object, it seems to not demolish or shatter on impact. It only applies a force and pushes my object. The object is then demolished by colliding with the floor or wall because it was pushed by my shot, not the actual contact point of the bullet. Why is this? I want to be able to shoot the corner of a cube and have the corner shot off. Instead, my cube is demolished completely by collision.
@MirVadim2 жыл бұрын
I replied to your email )
@luisgamboa44012 жыл бұрын
@@MirVadim thanks 👍
@RexSmithII2 жыл бұрын
@@MirVadim what was the answer?
@MirVadim2 жыл бұрын
@@RexSmithII You can add RayfireGun.Shoot (oldPos, dir) method in bl_Bullet.cs file at line 151/152 Rayfire Gun should be added in bullet object and shooting distance property should be set to bigger value than distanceSinceLastCheck variable. As for Bomb, I think it is better to add its RayfireBomb. Explode() method in blast.InitExplosion() method, but I do not see it in scripts you sent. But you should tune its explosion values accordingly to your game explosion properties, values like range and strength. You can send me script with this method to see where it is better to use Explode method.