Changes
This commit is contained in:
@@ -204,7 +204,9 @@ void AFireworksPawn::ThrowObject(APickableObject* Object, EControllerHand Hand)
|
||||
Object->ThrowingHand = Hand;
|
||||
Object->DetachFromActor(FDetachmentTransformRules::KeepWorldTransform);
|
||||
Object->StaticMesh->SetSimulatePhysics(true);
|
||||
Object->StaticMesh->SetPhysicsLinearVelocity(ApproximateThrowVelocity(Hand) * ThrowVelocityMultiplier);
|
||||
if (!Object->IsRocket) {
|
||||
Object->StaticMesh->SetPhysicsLinearVelocity(ApproximateThrowVelocity(Hand) * ThrowVelocityMultiplier);
|
||||
}
|
||||
Object->ThrowEffects();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user