

I’m wanting to create sword trails, the problem is when I create the mesh they lag one frame behind when the sword is, if the sword is moving fast as the pictures show (same picture, 1 in wireframe, I’m tessellate the curves) there can be quite a large distance from the sword and its trail. I assume the above picture sword trail is built from maybe 5 frames of animation movement
How to solve this?
I’m building the trail in weaponTrail.LateUpdate()
also I’ve experimented with changing the script execution order of the weaponTrail.cs class (both as < 0 and > 0)
quasi code
LateUpdate()
{
grab current sword tippos
grab current sword basepos
construct a spline mesh based on all the tip,base verts, tessellatted
}
I’ve en tried do drawMeshNow() but it still always lags 1 frame