Immersive Intelligence

Immersive Intelligence

2M Downloads

[BUG] Ballistic Computer returning the wrong Pitch value

MrDiamondDog opened this issue ยท 1 comments

commented

Describe the bug
When you give a data input the correct relative position to aim at something, the ballistic computer will always return the pitch value of 88, even though that is incorrect.

To Reproduce
Steps to reproduce the behavior:

  1. Get a data input computer and add the variables x, y, z, m
  2. Set the variables correctly.
  3. Connect the input computer to a ballistic computer and debugger.
  4. The printed values should look like this:
    image

Expected behavior
The pitch value should be the correct pitch value to aim at the position.

Screenshots or GIFs
image
image

EDIT
It seems as though the M (mass) and Y (relative y pos) don't change anything. Setting them to absurd numbers such as 10,000 doesn't change the pitch at all.

EDIT 2
I transferred the code into an OpenComputers lua OS, and it worked the exact same and returned a number near 88, always the same. The problem is the function, it needs to be fixed.

commented

This has been fixed by b4aa145