so i currently have this code: @Override public void applyForces(@NotNull PhysShip ship) { for (int i = 0; i < m_thrusters.size(); i ++ ) { Vector3f forceDir = new Vector3f(0, 0, 1); Direction blockRot = m_thruster_rotations.get(i); forceDir = blockRot.getUnitVector(); forceDir.mul(Endurance.THRUSTER_POWER); Vec3d thrusterPos = m_thrusters.get(i).toCenterPos(); ship.applyRotDependentForceToPos(new Vector3d(forceDir), new Vector3d(thrusterPos.x, thrusterPos.y, thrusterPos.z)); } },
and I am confused as I would like the thruster to apply force from its position but the function applyRotDependentForceToPos requires a pos relative to the center of mass; how would i solve this?
Reply chain from #40
This conversation is on Discord · Reply there