Class · inherits WorldRoot
WorldModel
Extends limited physics to its children.
About WorldModel
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
UseWorkspaceCollisionGroups
: booleanDetermines whether thisWorldModelusesWorkspacecollision groups or its own independent collision groups for queries.When
false(default), thisWorldModeluses its own collision groups for all collision-related behavior.When
true, thisWorldModelusesWorkspacecollision groups. Additionally, the collision group state of thisWorldModelcan continue to be modified.
WorldModel also has every member of WorldRoot. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.