Struct roblox::instance::BasePart [−][src]
pub struct BasePart<'a> {Show 58 fields
pub anchored: bool,
pub assembly_angular_velocity: Vector3,
pub assembly_center_of_mass: Vector3,
pub assembly_linear_velocity: Vector3,
pub assembly_mass: f32,
pub assembly_root_part: Option<InstanceRef>,
pub back_surface: SurfaceType,
pub bottom_surface: SurfaceType,
pub brick_color: BrickColor,
pub c_frame: CFrame,
pub can_collide: bool,
pub can_query: bool,
pub can_touch: bool,
pub cast_shadow: bool,
pub center_of_mass: Vector3,
pub collision_group_id: i32,
pub color: Color3,
pub custom_physical_properties: PhysicalProperties,
pub front_surface: SurfaceType,
pub left_surface: SurfaceType,
pub local_transparency_modifier: f32,
pub locked: bool,
pub mass: f32,
pub massless: bool,
pub material: Material,
pub material_variant: Option<InstanceRef>,
pub orientation: Vector3,
pub pivot_offset: CFrame,
pub position: Vector3,
pub receive_age: f32,
pub reflectance: f32,
pub resize_increment: i32,
pub resizeable_faces: Faces,
pub right_surface: SurfaceType,
pub root_priority: i32,
pub rotation: Vector3,
pub size: Vector3,
pub top_surface: SurfaceType,
pub transparency: f32,
pub origin_orientation: Vector3,
pub origin_position: Vector3,
pub pivot_offset_orientation: Vector3,
pub pivot_offset_position: Vector3,
pub archivable: bool,
pub class_name: &'a str,
pub name: &'a str,
pub parent: Option<InstanceRef>,
pub roblox_locked: bool,
pub source_asset_id: i64,
pub touch_ended: RBXScriptSignal<Option<InstanceRef>>,
pub touched: RBXScriptSignal<Option<InstanceRef>>,
pub ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>,
pub attribute_changed: RBXScriptSignal<&'a str>,
pub changed: RBXScriptSignal<&'a str>,
pub child_added: RBXScriptSignal<Option<InstanceRef>>,
pub child_removed: RBXScriptSignal<Option<InstanceRef>>,
pub descendant_added: RBXScriptSignal<Option<InstanceRef>>,
pub descendant_removing: RBXScriptSignal<Option<InstanceRef>>,
}Expand description
The BasePart Instance Class
BasePart is an abstract base class for in-world objects that render and are physically simulated while in the Workspace.
Fields
anchored: boolassembly_angular_velocity: Vector3assembly_center_of_mass: Vector3assembly_linear_velocity: Vector3assembly_mass: f32assembly_root_part: Option<InstanceRef>back_surface: SurfaceTypebottom_surface: SurfaceTypebrick_color: BrickColorc_frame: CFramecan_collide: boolcan_query: boolcan_touch: boolcast_shadow: boolcenter_of_mass: Vector3collision_group_id: i32color: Color3custom_physical_properties: PhysicalPropertiesfront_surface: SurfaceTypeleft_surface: SurfaceTypelocal_transparency_modifier: f32locked: boolmass: f32massless: boolmaterial: Materialmaterial_variant: Option<InstanceRef>orientation: Vector3pivot_offset: CFrameposition: Vector3receive_age: f32reflectance: f32resize_increment: i32resizeable_faces: Facesright_surface: SurfaceTyperoot_priority: i32rotation: Vector3size: Vector3top_surface: SurfaceTypetransparency: f32origin_orientation: Vector3Inherited from PVInstance
origin_position: Vector3Inherited from PVInstance
pivot_offset_orientation: Vector3Inherited from PVInstance
pivot_offset_position: Vector3Inherited from PVInstance
archivable: boolInherited from Instance
class_name: &'a strInherited from Instance
name: &'a strInherited from Instance
parent: Option<InstanceRef>Inherited from Instance
roblox_locked: boolInherited from Instance
source_asset_id: i64Inherited from Instance
touch_ended: RBXScriptSignal<Option<InstanceRef>>touched: RBXScriptSignal<Option<InstanceRef>>ancestry_changed: RBXScriptSignal<(Option<InstanceRef>, Option<InstanceRef>)>Inherited from Instance
attribute_changed: RBXScriptSignal<&'a str>Inherited from Instance
changed: RBXScriptSignal<&'a str>Inherited from Instance
child_added: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
child_removed: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
descendant_added: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
descendant_removing: RBXScriptSignal<Option<InstanceRef>>Inherited from Instance
Implementations
pub fn subtract_async(
&self,
parts: Array<Instance<'a>>,
collisionfidelity: CollisionFidelity,
render_fidelity: RenderFidelity
) -> Option<InstanceRef>
pub fn union_async(
&self,
parts: Array<Instance<'a>>,
collisionfidelity: CollisionFidelity,
render_fidelity: RenderFidelity
) -> Option<InstanceRef>
Inherited from PVInstance
Inherited from PVInstance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
pub fn find_first_child_which_is_a(
&self,
class_name: &'a str,
recursive: bool
) -> Option<InstanceRef>
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Inherited from Instance
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for BasePart<'a>
impl<'a> UnwindSafe for BasePart<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more