-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
CustomGravity currently checks every gravity source in the scene. If we start having many distant GravitySources in one scene, this will add a lot of calculations per tick for every CustomGravityRigidbody in the scene.
Do this
- Add a trigger volume to each
GravitySourcetype - When a
CustomGravityRigidbodyenters the trigger, add it to a list on thatCustomGravityRigidbody - When a
CustomGravityRigidbodyleaves the trigger, remove the source from the list - Maybe use key values to make certain sources override gravity but sources with different keys can have multiple active at the same time
Reactions are currently unavailable