So when scripting custom physics for my pool table i stumbled across an issue:
while some of the resources include variants that use Unit vector of velocity, some that are really important only explain topic in terms of ball-centric coordinate systems. I cannot really change or get the X and Z velocity values from ball’s perspective because i have been storing ball’s velocity in global coordinates since the very beginning and was using it like that for every other system. Are there any simple way to get from global XYZ to some point-centric XYZ? Ill attach the paint illustration of what i want
Unless I misunderstood your post, I believe you’re looking for this
local localVelocity = ballCF:VectorToObjectSpace(ballVelocity)
1 Like
i think thats the thing, thanks, i guess i overlooked this in the documentation
1 Like