Hi ;
In c++ , How can I add impulse to a movable (physic) actor , at a raycat hit location.
In my raycst function body , I put these codes, but it does not work :
Hit.GetComponent()->AddImpulseAtLocation(FVector(1000,0,0), Hit.ImpactPoint);
GetWorld()->SpawnActor(AMyBox::StaticClass(), Hit.ImpactPoint, Hit.Normal.Rotation(), SpawnParams);
( It spawns successfully , the “MyBox” object at hit location )
Thanks.
MSD.