Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_actuator.c
| Show First 20 Lines • Show All 2,060 Lines • ▼ Show 20 Lines | static void rna_def_steering_actuator(BlenderRNA *brna) | ||||
| RNA_def_property_enum_items(prop, facingaxis_items); | RNA_def_property_enum_items(prop, facingaxis_items); | ||||
| RNA_def_property_ui_text(prop, "Axis", "Axis for automatic facing"); | RNA_def_property_ui_text(prop, "Axis", "Axis for automatic facing"); | ||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | RNA_def_property_update(prop, NC_LOGIC, NULL); | ||||
| prop = RNA_def_property(srna, "normal_up", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "normal_up", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_STEERING_NORMALUP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_STEERING_NORMALUP); | ||||
| RNA_def_property_ui_text(prop, "N", "Use normal of the navmesh to set \"UP\" vector"); | RNA_def_property_ui_text(prop, "N", "Use normal of the navmesh to set \"UP\" vector"); | ||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | RNA_def_property_update(prop, NC_LOGIC, NULL); | ||||
| prop = RNA_def_property(srna, "linear_velocity_z_factor", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "velzfactor"); | |||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 1, 1); | |||||
| RNA_def_property_ui_text(prop, "Z factor", "Quantity of object micro-jumping during the path following " | |||||
| "(0.0 means no micro-jumping and 1.0 means maximum micro-jumping)"); | |||||
| RNA_def_property_update(prop, NC_LOGIC, NULL); | |||||
| } | } | ||||
| static void rna_def_mouse_actuator(BlenderRNA *brna) | static void rna_def_mouse_actuator(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem prop_type_items[] = { | static EnumPropertyItem prop_type_items[] = { | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||