Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*The Actor which will be selected from the Viewport*/
- UPROPERTY(EditAnywhere, Category = "Physics")
- AActor* ActorToMove;
- /*The Force that we're going to apply to the chosen Actor with a default value*/
- UPROPERTY(EditAnywhere, Category = "Physics")
- FVector ForceToAdd = FVector(0, 0, 5000);
- /*The function that applies the above force to the chosen Actor*/
- UFUNCTION(BlueprintCallable, Category = "Physics")
- void MoveChosenActor();
Advertisement
Add Comment
Please, Sign In to add comment