[...] //You need a ServerShip first
var controlMethodOne = ShipControl(serverShip, ship => {
//This is called on game tick, so you can use it to update "internals"
}, physShip => {
//This is called on the phys tick, so use it to apply forces
})
var wasApplied = controlMethodOne.hasControl(serverShip) //this is a boolean
[...] //You need a ServerShip first
var controlMethodTwo = ShipControl(ship => {
//This is called on game tick, so you can use it to update "internals"
}, physShip => {
//This is called on the phys tick, so use it to apply forces
})
var wasApplied = controlMethodTwo.attachToShip(serverShip) //this is a boolean
This does involve the removal of vs.applyForces event!
image.png
image.png
image.png