Exactly the title lol.
Reply chain from #35
or to manually check for a ship at a position:
// Pos would be in the shipyard here
Ship ship = VSGameUtilsKt.getShipObjectManagingPos(pos);
// Ship is null if its not in a shipyard
if (ship != null) {
//Do stuff here
// To transform the shipyard position back to a world position:
Vec3 worldPos = ship.getTransform().getShipToWorld().transformPosition(<Some vanilla Vector3 to VS Vec3 convert function here idr its name>(pos.getCenter()))
}
Where does the pos we pass to #getShipObjectManagingPos come from?
This conversation is on Discord · Reply there