Need help figuring out the math for drifting?
So I've literally been spending days trying to figure out how on earth the math for mario kart style drifting would be.
I am really bad when it comes to the math side of programming in general, it is so confusing for me to understand more complex integrations.
Here's what I have written currently:
01 | local primaryPart = script.Parent.Parent.Parent.PrimaryPart |
03 | script.Parent.Changed:Connect( function () |
05 | if script.Parent.Value = = false then |
Within the 'drift here' comment, I have use a number of different things including:
- Nested for loops
- TweenService
- CFraming
- Vectoring
I have also searched up similar works where the closest I have found was a realistic one done on unity and the unity java code works takes in very different inputs from roblox lua.
Even a push in the right direction is a big help. Thank you.