Tycoon UE4 C++ circle demo
27 Nov 2018So my original goal starting this project was to create a port of my original tool that I made for 3Ds Max ( Tycoon ). That tool is basically an extension of the existing bend deformer in Max, for the Unreal version I had no existing deformer.
My first idea was actually to just deform a point in a circle, but I though it would be better or more flexible to investigate other methods first ( FFD, MVC and other deformation methods). But rotating the point seems to work fine, and really exact. I might use the FFD deformation if want to have more ‘dynamic/sculpting’ control, for this prototype I just want things to bend say exactly 90 degrees.
FVector ATycoonActor::rot(FVector in, float angle) {
float s = sin(angle);
float c = cos(angle);
float x = c*in.X - s*in.Y;
float y = s*in.X + c*in.Y;
return FVector(x, y, in.Z);
}
If you haven’t seen the other tool: Tycoon - 3Ds Max custom bend tool release