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

View Roblox documentation

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: Vector3

Inherited from PVInstance

origin_position: Vector3

Inherited from PVInstance

pivot_offset_orientation: Vector3

Inherited from PVInstance

pivot_offset_position: Vector3

Inherited from PVInstance

archivable: bool

Inherited from Instance

class_name: &'a str

Inherited from Instance

name: &'a str

Inherited from Instance

parent: Option<InstanceRef>

Inherited from Instance

roblox_locked: bool

Inherited from Instance

source_asset_id: i64

Inherited 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

Inherited from PVInstance

Inherited from PVInstance

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.