Title. Mainly want a discussion with the devs about this, and especially regarding solutions.
There was compat once but i think a recent cbc update killed it a little bit so thats an oopsie
Basically the issue is that you need to do the clip function one time for every ship it passes through
You get the list of every ship that the clip function passes through, and then you transform the start and endpoint into ship space to and redo the clip
Basically, if you’re not familiar with how VS works, the chunks on the ship are actually in a faraway portion of the world called the shipyard, so the coordinates of the blocks on the ship are something like -28million, 0, 28million
So you need to transform the start and end points of the clip to be within ship space where the actual blocks are
the main issue I have with VS integration is that it would be shoehorned quite weirdly into the clip function
the rewrite came about because I was very unhappy with how vanilla clip handles high-speed projectiles, ie cannon projectiles
I would modify your function to have the signature clipAndDamage(Vec3 start, Vec3 end)
and then you do something like this ```java
protected void clipAndDamage() {
Vec3 start = …;
Vec3 end = …;
clipAndDamage(start, end);
AABBd aabb = new AABBd(start.x, start.y, start.z, end.x, end.y, end.z).correctBounds()
for (ClientShip ship : VSGameUtilsKt.getShipsIntersecting(level, aabb)) {
Vec3 startInShip = VectorConversionsMCKt.toMinecraft(ship.getRenderTransform().getWorldToShip().transformPosition(VectorConversionsMCKt.toJOML(start))
Vec3 endInShip = VectorConversionsMCKt.toMinecraft(ship.getRenderTransform().getWorldToShip().transformPosition(VectorConversionsMCKt.toJOML(end))
clipAndDamage(startInShip, endInShip)
}
}```
so if you update to make the mixin incompatible or such and no one has the time to fix it, then it might just be left broken or removed
This conversation is on Discord · Reply there