-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decreasing the number of Fixed Timesteps causes the vehicle to jump finely #44
Comments
The vehicles should remain stable with timesteps as large as 0.02, but lower than that can cause issues because forces are designed to scale with the timestep length to maintain consistent behavior. Raycasts have the greatest impact on performance out of everything in the project. One way to reduce the frequency of wheel raycasts is to use the wheel groups feature on the VehicleParent script. This is copied from the manual:
|
I tested using wheelgroup. I tested the setup as follows.
|
Sorry for the late reply, I've been busy with school. Take a look at the wheel cast mask on the global control object/script, it sounds like the wheels might be ignoring the layers that your environment objects are on. |
np man i was checked, but it is not. |
Did I come up with any other approaches to using WheelCollider's instead of Wheels, or have any ideas? |
You probably want to have the layermask include the default layer so that wheels can hit everything. You can look at the sample scene for an example. The wheels array should contain all of the wheels of the vehicle. There is a "Get Wheels" button in the inspector that you can use to fetch them. Creating a new wheel in the center of the vehicle is not a good idea since vehicles are not designed to work like that. |
I don't know the cause, but as the title says.
Validated to reduce to save CPU because too many initial values.
If me reduce it a little, a small amount of shaking will occur.
Reduce it in half and the vehicle will start to jump
Will not stay still properly.
This also happened when trying to port Rigidbody's AddForce to Jobsystem Update to speed things up (due to structure, probably skipping some frames).
What approach can I make them lighter?
Is there any way to reduce the number of Rigidbody AddForce?
I feel this asset is great and I'm creating more realistic vehicle behavior while customizing it from the era of Asset Store.
I don't want to consider stopping using this asset whenever possible.
Please give me an idea.
The text was updated successfully, but these errors were encountered: