ScratchData LogoScratchData
Back to superfireninja9's profile

Car Suspension In Progress

SUsuperfireninja9•Created November 2, 2022
Car Suspension In Progress
9
7
59 views
View on Scratch

Instructions

Drag the purple dots to create the slope for the car. This uses a simple point-based physics engine I created for this project. It uses a similar method for constraints and the overall physics simulation but relies on velocities instead of solely relying on past positions. ***This is just the bare bones of this project. I have not implemented collisions with the ground, or optimized the code to work better yet*** The springs use "Raycast Suspension." It is a method for simulating car suspension that game developers such as I like to use. Instead of actually simulating the real physics behind a spring being wrapped around a cylinder, attached to a while, and touching the ground, we just shoot rays at the corners of the vehicle down toward the direction of the bottom of the vehicle and then applies forces to make it look like vehicle suspension.

Project Details

Project ID755020404
CreatedNovember 2, 2022
Last ModifiedJanuary 11, 2023
SharedJanuary 11, 2023
Visibilityvisible
CommentsAllowed