mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
property editors for kcc
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user