Struct roblox::instance::WorldRoot [−][src]
pub struct WorldRoot<'a> {}Show 22 fields
pub level_of_detail: ModelLevelOfDetail, pub primary_part: Option<InstanceRef>, pub world_pivot_orientation: Vector3, pub world_pivot_position: Vector3, pub world_pivot: CFrame, 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 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 WorldRoot Instance Class
Fields
level_of_detail: ModelLevelOfDetail
Inherited from Model
primary_part: Option<InstanceRef>
Inherited from Model
world_pivot_orientation: Vector3
Inherited from Model
world_pivot_position: Vector3
Inherited from Model
world_pivot: CFrame
Inherited from Model
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
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 are_parts_touching_others(
&self,
part_list: Array<Instance<'a>>,
overlap_ignored: f32
) -> bool
pub fn bulk_move_to(
&self,
part_list: Array<Instance<'a>>,
cframe_list: Array<Variant<'a, ()>>,
event_mode: BulkMoveMode
)
pub fn find_parts_in_region3(
&self,
region: Region3,
ignore_descendants_instance: Option<InstanceRef>,
max_parts: i32
) -> Array<Instance<'a>>
pub fn find_parts_in_region3_with_ignore_list(
&self,
region: Region3,
ignore_descendants_table: Array<Instance<'a>>,
max_parts: i32
) -> Array<Instance<'a>>
pub fn find_parts_in_region3_with_white_list(
&self,
region: Region3,
whitelist_descendants_table: Array<Instance<'a>>,
max_parts: i32
) -> Array<Instance<'a>>
pub fn get_part_bounds_in_box(
&self,
cframe: CFrame,
size: Vector3,
overlap_params: OverlapParams
) -> Array<Instance<'a>>
pub fn get_part_bounds_in_radius(
&self,
position: Vector3,
radius: f32,
overlap_params: OverlapParams
) -> Array<Instance<'a>>
pub fn get_parts_in_part(
&self,
part: Option<InstanceRef>,
overlap_params: OverlapParams
) -> Array<Instance<'a>>
pub fn ik_move_to(
&self,
part: Option<InstanceRef>,
target: CFrame,
translate_stiffness: f32,
rotate_stiffness: f32,
collisions_mode: IKCollisionsMode
)
pub fn is_region3_empty(
&self,
region: Region3,
ignore_descendents_instance: Option<InstanceRef>
) -> bool
pub fn is_region3_empty_with_ignore_list(
&self,
region: Region3,
ignore_descendents_table: Array<Instance<'a>>
) -> bool
pub fn raycast(
&self,
origin: Vector3,
direction: Vector3,
raycast_params: RaycastParams
) -> RaycastResult
Inherited from Model
Inherited from Model
Inherited from Model
Inherited from Model
Inherited from Model
Inherited from Model
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 WorldRoot<'a>
impl<'a> UnwindSafe for WorldRoot<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more