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: bool
assembly_angular_velocity: Vector3
assembly_center_of_mass: Vector3
assembly_linear_velocity: Vector3
assembly_mass: f32
assembly_root_part: Option<InstanceRef>
back_surface: SurfaceType
bottom_surface: SurfaceType
brick_color: BrickColor
c_frame: CFrame
can_collide: bool
can_query: bool
can_touch: bool
cast_shadow: bool
center_of_mass: Vector3
collision_group_id: i32
color: Color3
custom_physical_properties: PhysicalProperties
front_surface: SurfaceType
left_surface: SurfaceType
local_transparency_modifier: f32
locked: bool
mass: f32
massless: bool
material: Material
material_variant: Option<InstanceRef>
orientation: Vector3
pivot_offset: CFrame
position: Vector3
receive_age: f32
reflectance: f32
resize_increment: i32
resizeable_faces: Faces
right_surface: SurfaceType
root_priority: i32
rotation: Vector3
size: Vector3
top_surface: SurfaceType
transparency: f32
origin_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
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