There will likely be concurrency issues tho so it’s opt-in via config
I think I need to play more in order to better understand the possibilities of this
I’m essentially giving event-based access to applyForces() which runs every phystick
Oooooooh, so in a way you can override some functions like this one with lua ?
Yesnt, you basically get watered down access to PhysShipImpl, almost the same as every other Force Inducer
So you can use this to apply your own stuff along with the other force inducers
Including fluid drag, static, and even internal values that change every tick like inertia and PoseVel
And ofc the apply methods, but ran EACH physics tick instead of every third physics tick as it runs via ExtendedShipAPI
So if I want to implement something like a custom collision but only with CC then can do it that way ?
Thats a bit iffy but you could with SomePeripherals
But the detection would be bound to gametick/CC threads as it would be done via Raycaster imo
Yes its more an example for something like “lets make the ship behave like if that random position is a bumper”
Ofc, thats IF this goes according to plan as there are atleast 3 separate ticks involved
Phystick
Gametick
CC threads
Thats just how it sent the class, dont think I have control over that
make it so you have to do
local e,applyInvariantForce,applyInvariantForceToPos,applyInvariantTorque,applyRotDependentForce,applyRotDependentForceToPos,applyRotDependentTorque,doFluidDrag,getBoutantFactor,getForcesInducers,getInertia,getPoseVel,isStatic,setFluidDrag,setStatic = os.pullEvent("applyForces")
I cannot, thats not how it does its wrapper for classes, it’s a thing thats controlled by CC itself
If it works how I want it to, itll be akin to how KubeVS lets you listen and interact with physShip
This conversation is on Discord · Reply there
image.png
:3dsmile: