pub struct SdfSkin { /* private fields */ }
Expand description
Represents an SDF skin you can set on a Render
component as a shape.
Implementations
sourceimpl 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
sourceimpl PartialEq<SdfSkin> for SdfSkin
impl PartialEq<SdfSkin> for SdfSkin
sourceimpl ValueConverterTrait<SdfSkin> for ValueConverter
impl ValueConverterTrait<SdfSkin> for ValueConverter
sourcefn into_value(v: SdfSkin) -> Value
fn into_value(v: SdfSkin) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more