Each frame, I can assign to the PositionAttitudeTransform of the model the Quat calculated by Triton.
OK, now the problem: I set the sea state = 0 or 1 or 2, then correspond to calm.
I have models with different size, but the TritonIntersector point always to the center of the model.
The model is subject to the movement of the wave, but even in the case of calm sea, this effect is too high.
Effect that certainly depends on the fact that the position that I pass is the center of the model and also depends on its length, in fact it decreases in the case of short models and vice versa.
How can I improve the code?
Do you have any advice?
Perhaps you need to sample more than one point on the hull. For example, sample a triangle of 3 points, and use the normal to that plane as your ship's up vector? The points don't even need to actually be on the ship itself. Just an idea.