Module: MSPhysics::Settings
- Defined in:
- RubyExtension/MSPhysics/settings.rb
Overview
Class Method Summary collapse
-
.aabb_visible=(state) ⇒ Object
Show/hide bodies' axes aligned bounding box (AABB).
-
.aabb_visible? ⇒ Boolean
Determine whether bodies' axes aligned bonding box (AABB) is visible.
-
.animate_scenes_delay ⇒ Numeric
Get the time to wait before starting to animate scenes.
-
.animate_scenes_delay=(value) ⇒ Object
Set the time to wait before starting to animate scenes.
-
.animate_scenes_reversed=(state) ⇒ Object
Reverse/normalize the animation of scenes.
-
.animate_scenes_reversed? ⇒ Boolean
Determine whether the animation of scenes is reversed.
-
.animate_scenes_state ⇒ Fixnum
Get the state of scenes animation.
-
.animate_scenes_state=(state) ⇒ Object
Set the state of scenes animation.
-
.axes_visible=(state) ⇒ Object
Show/hide bodies' centre of mass axes.
-
.axes_visible? ⇒ Boolean
Determine whether bodies' centre of mass axes are visible.
-
.bodies_visible=(state) ⇒ Object
Show/hide all bodies.
-
.bodies_visible? ⇒ Boolean
Determine whether bodies are visible.
-
.collision_wireframe_visible=(state) ⇒ Object
Show/hide bodies' collision wireframe.
-
.collision_wireframe_visible? ⇒ Boolean
Determine whether bodies' collision wireframe is visible.
-
.contact_forces_visible=(state) ⇒ Object
Show/hide bodies' contact forces.
-
.contact_forces_visible? ⇒ Boolean
Determine whether bodies contact forces are visible.
-
.contact_points_visible=(state) ⇒ Object
Show/hide bodies' contact points.
-
.contact_points_visible? ⇒ Boolean
Determine whether bodies' contact points are visible.
-
.continuous_collision_check_enabled=(state) ⇒ Object
Enable/disable continuous collision check.
-
.continuous_collision_check_enabled? ⇒ Boolean
Determine whether continuous collision check is enabled.
-
.full_screen_mode_enabled=(state) ⇒ Object
Enable/disable fullscreen mode.
-
.full_screen_mode_enabled? ⇒ Boolean
Determine whether fullscreen mode is enabled.
-
.game_mode_enabled=(state) ⇒ Object
Enable/disable game mode.
-
.game_mode_enabled? ⇒ Boolean
Determine whether game mode is enabled.
-
.gravity ⇒ Numeric
Get simulation gravitational acceleration along Z-axis, in meters per second per second (m/s/s).
-
.gravity=(acceleration) ⇒ Object
Set simulation gravitational acceleration along Z-axis, in meters per second per second (m/s/s).
-
.hide_joint_layer_enabled=(state) ⇒ Object
Enable/disable the hide-joint-layer option.
-
.hide_joint_layer_enabled? ⇒ Boolean
Determine whether the hide-joint-layer option is enabled.
-
.ignore_hidden_instances=(state) ⇒ Object
Enable/disable fancy operation.
-
.ignore_hidden_instances? ⇒ Boolean
Determine whether hidden instances are ignored.
-
.joint_algorithm ⇒ Fixnum
Get joint solver model.
-
.joint_algorithm=(model) ⇒ Object
Set joint solver model.
-
.key_nav_atime ⇒ Numeric
Get the time to accelerate, in seconds, from zero to the desired velocity or omega.
-
.key_nav_atime=(value) ⇒ Object
Set the time to accelerate, in seconds, from zero to the desired velocity or omega.
-
.key_nav_omega ⇒ Numeric
Get the maximum omega of keyboard camera navigation in rad/s.
-
.key_nav_omega=(value) ⇒ Object
Set the maximum omega of keyboard camera navigation in rad/s.
-
.key_nav_state ⇒ Fixnum
Get the state of keyboard navigation.
-
.key_nav_state=(state) ⇒ Object
Set the state of keyboard navigation.
-
.key_nav_velocity ⇒ Numeric
Get the maximum velocity of keyboard camera navigation in m/s.
-
.key_nav_velocity=(value) ⇒ Object
Set the maximum velocity of keyboard camera navigation in m/s.
-
.keyboard_navigation_enabled=(state) ⇒ Object
Enable/disable the navigation of camera with keyboard.
-
.keyboard_navigation_enabled? ⇒ Boolean
Determine whether the navigation of camera with keyboard is enabled.
-
.load_options ⇒ Object
Load settings from registry.
-
.material_thickness ⇒ Numeric
Get simulation material thickness in meters.
-
.material_thickness=(thickness) ⇒ Object
Set simulation material thickness in meters.
-
.save_options ⇒ Object
Save settings to registry.
-
.solver_model ⇒ Fixnum
Get simulation solver model.
-
.solver_model=(model) ⇒ Object
Set simulation solver model.
-
.undo_on_end_enabled=(state) ⇒ Object
Enable/disable the undo-on-end option.
-
.undo_on_end_enabled? ⇒ Boolean
Determine whether the undo-on-end option is enabled.
-
.update_rate ⇒ Fixnum
Get simulation update rate, the number of times to update newton world per frame.
-
.update_rate=(rate) ⇒ Object
Set simulation update rate, the number of times to update newton world per frame.
-
.update_timestep ⇒ Numeric
Get simulation update timestep in seconds.
-
.update_timestep=(timestep) ⇒ Object
Set simulation update timestep in seconds.
-
.world_scale ⇒ Numeric
Get world scale.
-
.world_scale=(scale) ⇒ Object
Set world scale.
Class Method Details
.aabb_visible=(state) ⇒ Object
Show/hide bodies' axes aligned bounding box (AABB).
.aabb_visible? ⇒ Boolean
Determine whether bodies' axes aligned bonding box (AABB) is visible.
.animate_scenes_delay ⇒ Numeric
Get the time to wait before starting to animate scenes.
.animate_scenes_delay=(value) ⇒ Object
Set the time to wait before starting to animate scenes.
.animate_scenes_reversed=(state) ⇒ Object
Reverse/normalize the animation of scenes.
.animate_scenes_reversed? ⇒ Boolean
Determine whether the animation of scenes is reversed.
.animate_scenes_state ⇒ Fixnum
Get the state of scenes animation.
.animate_scenes_state=(state) ⇒ Object
Set the state of scenes animation.
.axes_visible=(state) ⇒ Object
Show/hide bodies' centre of mass axes.
.axes_visible? ⇒ Boolean
Determine whether bodies' centre of mass axes are visible.
.bodies_visible=(state) ⇒ Object
Show/hide all bodies.
.bodies_visible? ⇒ Boolean
Determine whether bodies are visible.
.collision_wireframe_visible=(state) ⇒ Object
Show/hide bodies' collision wireframe.
.collision_wireframe_visible? ⇒ Boolean
Determine whether bodies' collision wireframe is visible.
.contact_forces_visible=(state) ⇒ Object
Show/hide bodies' contact forces.
.contact_forces_visible? ⇒ Boolean
Determine whether bodies contact forces are visible.
.contact_points_visible=(state) ⇒ Object
Show/hide bodies' contact points.
.contact_points_visible? ⇒ Boolean
Determine whether bodies' contact points are visible.
.continuous_collision_check_enabled=(state) ⇒ Object
Enable/disable continuous collision check.
.continuous_collision_check_enabled? ⇒ Boolean
Determine whether continuous collision check is enabled.
.full_screen_mode_enabled=(state) ⇒ Object
Enable/disable fullscreen mode.
.full_screen_mode_enabled? ⇒ Boolean
Determine whether fullscreen mode is enabled.
.game_mode_enabled=(state) ⇒ Object
Enable/disable game mode.
.game_mode_enabled? ⇒ Boolean
Determine whether game mode is enabled.
.gravity ⇒ Numeric
Get simulation gravitational acceleration along Z-axis, in meters per second per second (m/s/s).
.gravity=(acceleration) ⇒ Object
Set simulation gravitational acceleration along Z-axis, in meters per second per second (m/s/s).
.hide_joint_layer_enabled=(state) ⇒ Object
Enable/disable the hide-joint-layer option.
.hide_joint_layer_enabled? ⇒ Boolean
Determine whether the hide-joint-layer option is enabled.
.ignore_hidden_instances=(state) ⇒ Object
Enable/disable fancy operation.
.ignore_hidden_instances? ⇒ Boolean
Determine whether hidden instances are ignored.
.joint_algorithm ⇒ Fixnum
Get joint solver model.
.joint_algorithm=(model) ⇒ Object
Changing this property won't have an effect until simulation is restarted.
Set joint solver model.
.key_nav_atime ⇒ Numeric
Get the time to accelerate, in seconds, from zero to the desired velocity or omega.
.key_nav_atime=(value) ⇒ Object
Set the time to accelerate, in seconds, from zero to the desired velocity or omega.
.key_nav_omega ⇒ Numeric
Get the maximum omega of keyboard camera navigation in rad/s.
.key_nav_omega=(value) ⇒ Object
Set the maximum omega of keyboard camera navigation in rad/s.
.key_nav_state ⇒ Fixnum
Get the state of keyboard navigation.
.key_nav_state=(state) ⇒ Object
Set the state of keyboard navigation.
.key_nav_velocity ⇒ Numeric
Get the maximum velocity of keyboard camera navigation in m/s.
.key_nav_velocity=(value) ⇒ Object
Set the maximum velocity of keyboard camera navigation in m/s.
.keyboard_navigation_enabled=(state) ⇒ Object
Enable/disable the navigation of camera with keyboard.
.keyboard_navigation_enabled? ⇒ Boolean
Determine whether the navigation of camera with keyboard is enabled.
.load_options ⇒ Object
Load settings from registry
.material_thickness ⇒ Numeric
Get simulation material thickness in meters.
.material_thickness=(thickness) ⇒ Object
Set simulation material thickness in meters.
.save_options ⇒ Object
Save settings to registry
.solver_model ⇒ Fixnum
Get simulation solver model.
.solver_model=(model) ⇒ Object
Set simulation solver model.
.undo_on_end_enabled=(state) ⇒ Object
Enable/disable the undo-on-end option.
.undo_on_end_enabled? ⇒ Boolean
Determine whether the undo-on-end option is enabled.
.update_rate ⇒ Fixnum
Get simulation update rate, the number of times to update newton world per frame.
.update_rate=(rate) ⇒ Object
Set simulation update rate, the number of times to update newton world per frame.
.update_timestep ⇒ Numeric
Get simulation update timestep in seconds.
.update_timestep=(timestep) ⇒ Object
Set simulation update timestep in seconds.
.world_scale ⇒ Numeric
Get world scale.
.world_scale=(scale) ⇒ Object
Changing this property won't have an effect until simulation is restarted.
Set world scale.