pub struct SdfSkin { /* private fields */ }Expand description
Represents an SDF skin you can set on a Render component as a shape.
Implementations§
source§impl SdfSkin
impl SdfSkin
sourcepub fn new(
base_sdf_entity: Entity,
bone_entities: &[Entity],
rest_from_shape: &[BoneTransform],
replacement_mesh: Option<WorldMesh>,
bone_weight_flags: BoneWeightFlags,
bone_weight_bias: f32,
bone_weight_falloff: f32
) -> Self
pub fn new( base_sdf_entity: Entity, bone_entities: &[Entity], rest_from_shape: &[BoneTransform], replacement_mesh: Option<WorldMesh>, bone_weight_flags: BoneWeightFlags, bone_weight_bias: f32, bone_weight_falloff: f32 ) -> Self
Creates an SDF skin.
sourcepub fn replacement_mesh(&self) -> Option<WorldMesh>
pub fn replacement_mesh(&self) -> Option<WorldMesh>
Returns the mesh used as a replacement for this sdf skin
Trait Implementations§
source§impl PartialEq<SdfSkin> for SdfSkin
impl PartialEq<SdfSkin> for SdfSkin
source§impl ValueConverterTrait<SdfSkin> for ValueConverter
impl ValueConverterTrait<SdfSkin> for ValueConverter
source§fn into_value(v: SdfSkin) -> Value
fn into_value(v: SdfSkin) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> SdfSkin
fn from_value(v: &Value) -> SdfSkin
Extracts the value from a
Value enum.impl Eq for SdfSkin
impl StructuralEq for SdfSkin
impl StructuralPartialEq for SdfSkin
Auto Trait Implementations§
impl RefUnwindSafe for SdfSkin
impl Send for SdfSkin
impl Sync for SdfSkin
impl Unpin for SdfSkin
impl UnwindSafe for SdfSkin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more