orfeasel

Force Actor header file

Dec 26th, 2015
8,895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. /*The Actor which will be selected from the Viewport*/
  2. UPROPERTY(EditAnywhere, Category = "Physics")
  3. AActor* ActorToMove;
  4.  
  5. /*The Force that we're going to apply to the chosen Actor with a default value*/
  6. UPROPERTY(EditAnywhere, Category = "Physics")
  7. FVector ForceToAdd = FVector(0, 0, 5000);
  8.  
  9. /*The function that applies the above force to the chosen Actor*/
  10. UFUNCTION(BlueprintCallable, Category = "Physics")
  11. void MoveChosenActor();
Advertisement
Add Comment
Please, Sign In to add comment