forked from bartvdbraak/blender
BGE physics: allow higher values for maxlogicstep and maxphystep
Increasing those values beyond 5 is important for exact physics simulation. Soft limit is increased to 50, hard limit to 10000. To be able to set different values for hardlimit and softlimit, RNA_def_property_range needs to precede RNA_def_property_range, hence the swapped order.
This commit is contained in:
parent
31425f9225
commit
32482aadb8
@ -3623,8 +3623,8 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "logic_step_max", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "maxlogicstep");
|
||||
RNA_def_property_ui_range(prop, 1, 5, 1, 1);
|
||||
RNA_def_property_range(prop, 1, 5);
|
||||
RNA_def_property_range(prop, 1, 10000);
|
||||
RNA_def_property_ui_range(prop, 1, 50, 1, 1);
|
||||
RNA_def_property_ui_text(prop, "Max Logic Steps",
|
||||
"Maximum number of logic frame per game frame if graphics slows down the game, "
|
||||
"higher value allows better synchronization with physics");
|
||||
@ -3632,8 +3632,8 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "physics_step_max", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "maxphystep");
|
||||
RNA_def_property_ui_range(prop, 1, 5, 1, 1);
|
||||
RNA_def_property_range(prop, 1, 5);
|
||||
RNA_def_property_range(prop, 1, 10000);
|
||||
RNA_def_property_ui_range(prop, 1, 50, 1, 1);
|
||||
RNA_def_property_ui_text(prop, "Max Physics Steps",
|
||||
"Maximum number of physics step per game frame if graphics slows down the game, "
|
||||
"higher value allows physics to keep up with realtime");
|
||||
|
Loading…
Reference in New Issue
Block a user