File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 24642464 </member >
24652465 <member name =" physics/jolt_physics_3d/simulation/bounce_velocity_threshold" type =" float" setter =" " getter =" " default =" 1.0" >
24662466 The minimum velocity needed before a collision can be bouncy, in meters per second.
2467+ [b]Note:[/b] This setting will only be read once during the lifetime of the application.
24672468 </member >
24682469 <member name =" physics/jolt_physics_3d/simulation/continuous_cd_max_penetration" type =" float" setter =" " getter =" " default =" 0.25" >
24692470 Fraction of a body's inner radius that may penetrate another body while using continuous collision detection.
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ float JoltProjectSettings::get_soft_body_point_radius() {
119119}
120120
121121float JoltProjectSettings::get_bounce_velocity_threshold () {
122- return GLOBAL_GET (" physics/jolt_physics_3d/simulation/bounce_velocity_threshold" );
122+ static const float value = GLOBAL_GET (" physics/jolt_physics_3d/simulation/bounce_velocity_threshold" );
123+ return value;
123124}
124125
125126bool JoltProjectSettings::is_sleep_allowed () {
You can’t perform that action at this time.
0 commit comments