so when looking at the tick forces applyer.the types appear to be Invariant[Force/Torque], RotDependent[Force/Torque] and InvariantForceToPos but all those words make no sense to me. oh yeah and toggling static is also on there (that will be another spell)
so when applying most of my forces it would be via rotdependent?
and I assume Force is a Impulse, and Torque is for spinning the plane
hmm I am thinking of just shoving values into the GameTic fore inducer
oh yeah I also plan on adding spells to
change what is considered “forward” for the ship when it comes to look direction
a pattern to prevent the ship from being “scanned” aka: cannot make new ship iotas from that ship
GameTickForcesInducer is missing a section for RotDependentForceAtPos which is also a Force you can apply
This is why CC: VS made its own QueuedForcesInducer
why not make a force inducer that is just for RotDependentForceAtPos
Cuz why when the class itself made for every other applicable force is just missing that one and Mixins don’t wanna target VS2 Kotlin classes for some reason
In any case, this is the solution CC: VS does to allow ExtendedShipAPI to apply all available forces/torques
Attachments are confusing imo
What I know is that the class needs to have a default empty constructor (as well as anything you want serialized inside it) unless the class implements ServerShipUser iirc
because I would love to seralize the “forward” direction. and if the ship is “hidden” into the ships data
store it as a Vector4d and use the w as whether the ship is hidden or not
but I also have no clue how to make a class that I can attach, where to store it, when to attach it, how to make sure it exists
You need a ServerShip and that has getAttachment and saveAttachment
Attached classes are updated the moment you change em so you dont have to re-save them iirv
and do those classes need any restrictions or anything (also sad I cant download sources for the vscore stuff)
The attachment is stored via Jackson iirc, which is a bit quirky about what it serializes
Imo, ask Alex for the unofficial docs they made on it, much better than I can explain
Also, regarding use of get/saveAttachment, here’s how CC: VS does it
My QueuedForcesInducer and the methods where its grabbed and used by the ingame computers
@ruby Q: why are you using jackson for serialization when gson comes bundled with MC for all the versions vs2 is on?
This conversation is on Discord · Reply there