I am trying my darndest to get the cannon from supplementaries to interact with ships.
I am just browsing the source rn but it will take me a while so i am leaving this here.
Any help with integrating collision will be appreciated.
I am trying my darndest to get the cannon from supplementaries to interact with ships.
I am just browsing the source rn but it will take me a while so i am leaving this here.
Any help with integrating collision will be appreciated.
I understand their real blocks are millions of blocks away -but what is being projected that I can further implement projectile collisions onto?
most vanilla-MC distance checks, raycasts, etc are already redirected to ships if needed
anyway if a conventional raycast isn’t possible to be put into the supplementary system, you can use some of the functions in VSGameUtilsKt
java example: ```java
// level and my_blockpos are variables from elsewhere, depends on where you run this code
Ship the_ship = VSGameUtilsKt.getShipObjectManagingPos(level, my_blockpos)
// Ship will be null if there isn’t a ship at that position
if (the_ship != null) {
// do something
}
// normal behaviour
kotlin example: ```kotlin
// level and my_blockpos are variables from elsewhere, depends on where you run this code
var the_ship = level.getShipObjectManagingPos(my_blockpos)
// Ship will be null if there isn't a ship at that position
if (the_ship != null) {
// do something
}
// normal behaviour
i am trying to redirect some of those functions from RaycastUtilsKt i wonder if im in the wrong place
I’ve never used raycast utils myself, since vanilla raycast methods (level.clip) should find shipyard positions
would decompiling to java within Intellij be the right approach for kt?
it seems to have missing mappings and poor syntax highlighting so im in doubt
the easiest way is to type the kotlin class name, then a . like
VSGameUtilsKt. then hit ctrl+space and it will auto-suggest all the functions available in java
i dont know what the functions are tho
nor would i know what they do
JOML is the format VS uses, with Vector3f, Vector3dc, etc wheras minecraft has its own Vec3, Vec3i, etc
This conversation is on Discord · Reply there