Crate bevy_fsl_box_frame

Source
Expand description

3D OBB with pointer-based manipulation features.

demo

We say “frame” because only the 12 edges of the box are rendered via bevy_polyline.

Faces of the box can be dragged by the pointer to manipulate the box extents. As the pointer hovers over each face, visual feedback is provided (highlight material).

Depends on [bevy_mod_picking::DefaultPickingPlugins] and bevy_polyline::PolylinePlugin.

Structs§

BoxFrame
The behavioral component of a box frame entity.
BoxFramePlugin
Enables pointer interactions for BoxFrame entities.
BoxFrameVisuals
Assets and configuration for how the gizmo is rendered.
SolidColorMaterial
A mesh material that only outputs a single color.

Functions§

median3
The median of three values.

Type Aliases§

FaceIndex
ScalingFn
Given the box frame’s current extents, returns the desired scaling factor of the handle’s Transform.