TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.
https://rmc.triaxis.games/
Other
1.58k stars 412 forks source link

Add primitive capsule #245

Open rubenmoor opened 1 year ago

rubenmoor commented 1 year ago

I added AppendCapsuleMesh to add a primitive to any mesh with a capsule shape defined by

and a transform.

I have troubles getting the wrapping of the uv coordinates right, apart from that this works fine.

I use duplicate vertices at the poles and along the seam for the cylinder for the purpose of having a correct uv mapping.

Sorry for messing up all the tabs/spaces.