property editors for kcc

This commit is contained in:
Dmitry Stepanov
2026-06-26 21:47:16 +03:00
parent dc514811f0
commit fc305b3b02
2 changed files with 16 additions and 1 deletions
@@ -199,6 +199,9 @@ use crate::{
selection::SelectionSettings,
},
};
use fyrox::scene::graph::physics::character::{
CharacterAutostep, CharacterLength, KinematicCharacterController,
};
use fyrox_build_tools::{BuildProfile, CommandDescriptor, EnvironmentVariable};
pub mod animation;
@@ -686,6 +689,17 @@ pub fn make_property_editors_container(
container.insert(VertexBufferPropertyEditorDefinition);
container.insert(TriangleBufferPropertyEditorDefinition);
container.insert(InspectablePropertyEditorDefinition::<
KinematicCharacterController,
>::new());
container.insert(InspectablePropertyEditorDefinition::<
dim2::physics::character::KinematicCharacterController,
>::new());
container.insert(InspectablePropertyEditorDefinition::<CharacterAutostep>::new());
container.insert(EnumPropertyEditorDefinition::<CharacterLength>::new());
container.insert(EnumPropertyEditorDefinition::<CharacterLength>::new_optional());
reg_node_handle_editors!(
container,
sender,
@@ -36,9 +36,10 @@ use rapier3d::{
math::Pose,
na::Isometry3,
};
use strum_macros::{AsRefStr, EnumString, VariantNames};
/// A length measure used for various options of a character controller.
#[derive(Visit, Reflect, Copy, Clone, Debug, PartialEq)]
#[derive(Visit, Reflect, Copy, Clone, Debug, PartialEq, AsRefStr, EnumString, VariantNames)]
#[reflect(type_uuid = "9b0843a3-dea4-46ed-91fa-7c4831302340")]
pub enum CharacterLength {
/// The length is specified relative to some of the character shape’s size.