This release further improves the Gizmo module by adding a default implementation of instance editing. There are now also three separate gizmo models for moving, rotating and scaling objects. All of these operations can be done in both global and local space (space relative to the last selected instance). This should allow for much easier development of custom level editors for projects using BBMOD.
_size
to BBMOD_Gizmo
's constructor, which is the size of the gizmo.BBMOD_EEditType
, which is an enumeration of edit types (move, rotate, scale).EditType
to BBMOD_Gizmo
, which is the current edit type.KeyNextEditType
to BBMOD_Gizmo
, which is the virtual key used to cycle between edit types.Models
to BBMOD_Gizmo
, which is an array of gizmo models for each edit type.Model
of BBMOD_Gizmo
is now obsolete.BBMOD_EEditSpace
, which is an enumeration of edit spaces (global, local).EditSpace
to BBMOD_Gizmo
, which is the current edit space.KeyNextEditSpace
to BBMOD_Gizmo
, which is the virtual key used to cycle between edit spaces.Rotation
to BBMOD_Gizmo
, which is the gizmo's rotation.ButtonDrag
to BBMOD_Gizmo
, which is the mouse button used to control the gizmo.KeyEditFaster
and KeyEditSlower
to BBMOD_Gizmo
, which are virtual keys used to edit selected instances faster/slower.InstanceExists
, SetInstancePositionX
, GetInstancePositionX
, SetInstancePositionY
, GetInstancePositionY
, SetInstancePositionZ
, GetInstancePositionZ
, SetInstanceRotationX
, GetInstanceRotationX
, SetInstanceRotationY
, GetInstanceRotationY
, SetInstanceRotationZ
, GetInstanceRotationZ
, SetInstanceScaleX
, GetInstanceScaleX
, SetInstanceScaleY
, GetInstanceScaleY
, SetInstanceScaleZ
and GetInstanceScaleZ
to BBMOD_Gizmo
. These are used to check if an instance exists and to retrieve/change its position, rotation and scale. You can override these in case they work with different variables than you use in your project.get_instance_position_vec3
, set_instance_position_vec3
, get_instance_rotation_vec3
, set_instance_rotation_vec3
, get_instance_scale_vec3
and set_instance_scale_vec3
to BBMOD_Gizmo
, which are used to retrieve/change an instance's position, rotation and scale using BBMOD_Vec3
.update_position
to BBMOD_Gizmo
, which updates gizmo's position based on its selected instances.update
to BBMOD_Gizmo
, which updates the gizmo (handles instance editing etc.).Visible
of BBMOD_Gizmo
is now obsolete.EditMode
to BBMOD_Renderer
, which enables its Gizmo
and selecting instances.ButtonSelect
to BBMOD_Renderer
, which is the mouse button used to select instances.KeyMultiSelect
to BBMOD_Renderer
, which is the virtual keys used for adding/removing instances to/from multiple selection.select_gizmo
of BBMOD_Renderer
is now obsolete.Copyright © 2023, BlueBurn. Built on September 11, 2023 using GMDoc.