힘(Force)
void AFloater::BeginPlay()
{
Super::BeginPlay();
PlacedLocation = GetActorLocation();
if (bInitializerFloaterLocations)
{
SetActorLocation(InitialLocation);
}
// InitialForce에 어떻게 힘들 가할지 넘긴다
StaticMesh->AddForce(InitialForce);
}
UPROPERTY(EditInstanceOnly, BlueprintReadWrite, Category = "Floater Variables")
FVector InitialForce;
토크(Torque)
void AFloater::BeginPlay()
{
// ...
StaticMesh->AddTorqueInDegrees(InitialTorque);
}
UPROPERTY(EditInstanceOnly, BlueprintReadWrite, Category = "Floater Variables")
FVector InitialTorque;
토크를 많이주면 스핀을 한다.