Class
WorldModel
Extends limited physics to its children.
When parented to a ViewportFrame, WorldModel extends limited physics
for its children on to that ViewportFrame. For example,
BaseParts that are parented to the WorldModel can be
animated and spatially queried (for example by raycasts) but those parts are
not simulated. Furthermore, you can put Humanoid characters in the
WorldModel and their joints will be set up correctly for animation.
WorldModel also exposes the
UseWorkspaceCollisionGroups
property to determine whether it uses Workspace collision groups or
its own independent collision groups for queries.
To avoid possible performance issues, make sure to only create WorldModels
when you want to show them and to delete WorldModels that are currently not
in use.
Properties 1#
UseWorkspaceCollisionGroupsboolean | Determines whether this WorldModel uses Workspace collision
groups or its own independent collision groups for queries.ReadSafe |
Inherited members#
Inherited from WorldRoot 29
Methods (29)
ArePartsTouchingOthers, Blockcast, BulkMoveTo, CollisionGroupsAreCollidable, CollisionGroupSetCollidable, FindPartOnRay, findPartOnRay, FindPartOnRayWithIgnoreList, FindPartOnRayWithWhitelist, FindPartsInRegion3, findPartsInRegion3, FindPartsInRegion3WithIgnoreList, FindPartsInRegion3WithWhiteList, GetMaxCollisionGroups, GetPartBoundsInBox, GetPartBoundsInRadius, GetPartsInPart, GetRegisteredCollisionGroups, IKMoveTo, IsCollisionGroupRegistered, IsRegion3Empty, IsRegion3EmptyWithIgnoreList, Raycast, RegisterCollisionGroup, RenameCollisionGroup, Shapecast, Spherecast, StepPhysics, UnregisterCollisionGroup
Inherited from Model 26
Properties (5)
LevelOfDetail, ModelStreamingMode, PrimaryPart, Scale, WorldPivot
Methods (21)
AddPersistentPlayer, BreakJoints, breakJoints, GetBoundingBox, GetExtentsSize, GetModelCFrame, GetModelSize, GetPersistentPlayers, GetPrimaryPartCFrame, GetScale, MakeJoints, makeJoints, move, MoveTo, moveTo, RemovePersistentPlayer, ResetOrientationToIdentity, ScaleTo, SetIdentityOrientation, SetPrimaryPartCFrame, TranslateBy
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild