What are you cooking
π³
Finally I can make ork Roks:
https://youtube.com/shorts/YYAmFdt1WrM?si=UU40uN5nvCmeztSE
itβs impossible (unless you modify vs bytecode ofc (or you have access to vs core))
+my socks mod obvs
π (nah jk itβs completely unrelated)
// no gravity for testing
//physShip.applyInvariantForce(Vector3d(0.0, physShip.inertia.shipMass * 10, 0.0))
public class GravController implements ShipForcesInducer {
private final ServerShip ship;
public boolean shipChecker(List<AABB> aabbs, Vector3d point) {
boolean isInsideAnyAABB = false;
if(aabbs != null) {
for (AABB aabb : aabbs) {
if (
point.x >= aabb.minX && point.x <= aabb.maxX &&
point.y >= aabb.minY && point.y <= aabb.maxY &&
point.z >= aabb.minZ && point.z <= aabb.maxZ) {
isInsideAnyAABB = true;
} else {
isInsideAnyAABB = false;
}
}
}
return isInsideAnyAABB;
}
@Override
public void applyForces(@NotNull PhysShip physShip) {
double mass;
Vector3d forces;
GravitationalRiteType gravRite = new GravitationalRiteType();
if (shipChecker(gravRite.getAuras(),new Vector3d(physShip.getTransform().getPositionInWorld()))) {
mass = ship.getInertiaData().getMass();
forces = new Vector3d(0,mass*10,0);
physShip.applyInvariantForce(forces);
}
}
public GravController(ServerShip ship) {
this.ship = ship;
}
}```
Iβve meant changing gravity vector, not βfakingβ it. But this will work, yes
thats a bad idea, youd make gravity non existant everywhere, which would cause issues in other places
An object at rest stays at rest unless acted upon by an external net force, or smth
1 reply not shown Β· View on Discord
:sus:
:clueless: