Make it visible so we can see how internally it applies friction, for example I’m making 2 car chassis using raycast and constraints, it would be good if I could see also how it is internally being computed so I can apply to my raycast car exactly the same as the constraints.
Affected URL: PhysicalProperties | Documentation - Roblox Creator Hub
Hi Casfer,
Do you mind sharing why you’re building the car with raycasts instead of constraints?
Best,
M0bsterLobster
This is gonna be a long one…
I wanted to use some kind of axle setup so I could mount brake disk calipers, keeping them fixed while still allowing the wheel to steer. This is exactly how I would do it, and I just welded the disk calipers themselves with axle.
That did work, but I ran into two problems:
- The speed caps out around 600 sps, which is too slow for the type of game I’m making.
- The handling feels off as it’s way easier to lose traction compared to other chassis setups with the same physical properties.
After that, I tried cylindrical constraints, which I would do exactly like this, and it fixed pretty much everything. At the speed limits, the handling is super consistent, and the physics feel great. The only and big downside is that I’d basically have to give up on the axle idea. Simulating one externally with code just isn’t an option for me.
So I opted to use physics I created entirely myself, but I would need to know how it internally applies friction to be able to use this exact same method in my own physics. Does density play into the equation? What about understeer and oversteer?
I have so many questions that I’d really like to speak with someone specialized who could help me with just a little bit of everything. How could I do this?
This is actually common practice outside of roblox, as it provides a much smoother and controlled gameplay experience. It allows for better control like arcade-like drifting and other cool things.
I hope this expands your view on why this is done and how it’s not unusual
But I want to use constraints, and I wanted a solution to my axle problem.
I’m explaining the uses of raycasts on vehicles, not the solution to your problem.