Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenGui
- Frame
- TextLabel
- TextButton
- ImageLabel
- ImageButton
- UICorner
- UIPadding
- UIScale
- UIStroke
- UIGridLayout
- UIListLayout
- UIPageLayout
- UIAspectRatioConstraint
- TextBox
- ScrollingFrame
- SurfaceGui
- BillboardGui
- AlignPosition
- AlignOrientation
- AlignSize
- ListLayout
- GridLayout
- PageLayout
- UIGradient
- UIAnchor
- UITextSizeConstraint
- UISizeConstraint
- UIConstraint
- UIViewportFrame
- UISizeConstraint
- UIFill
- UIStroke
- UITextBox
- UICorner
- UISizeConstraint
- AlignPosition
- AlignOrientation
- AlignSize
- UIListLayout
- UITextBox
- UIGridLayout
- UIPageLayout
- UIPadding
- UIScale
- UITextSizeConstraint
- UIAspectRatioConstraint
- UITextBox
- UIConstraint
- UIStroke
- UIGridLayout
- UIListLayout
- UIPageLayout
- TextLabel
- ImageLabel
- ImageButton
- TextButton
- ScrollingFrame
- SurfaceGui
- BillboardGui
- Frame
- UICorner
- UIGradient
- UITextSizeConstraint
- UISizeConstraint
- ListLayout
- GridLayout
- PageLayout
- UICorner
- UIGradient
- UIStroke
- UISizeConstraint
- UITextSizeConstraint
- UIAnchor
- TextButton
- TextLabel
- ImageLabel
- ImageButton
- Frame
- ScrollingFrame
- TextBox
- SurfaceGui
- BillboardGui
- AlignPosition
- AlignOrientation
- AlignSize
- ScreenGui
- Frame
- TextLabel
- TextButton
- ImageLabel
- ImageButton
- UICorner
- UIPadding
- UIScale
- UIStroke
- UIGridLayout
- UIListLayout
- UIPageLayout
- UIPadding
- UIAspectRatioConstraint
- TextBox
- ScrollingFrame
- Documentation
- Search Docs (Ctrl + K)
- Engine
- Reference
- Data Types
- PhysicalProperties
- Show Deprecated
- The PhysicalProperties data type describes several physical properties of a BasePart: Density, Elasticity, and Friction. It is used in the similarly-named BasePart.CustomPhysicalProperties property.
- Weighting Behavior
- PhysicalProperties also provides weightings properties, ElasticityWeight and FrictionWeight. When two parts interact, the friction and elasticity between them are determined in the same way by the following pairwise weighted average function:
- local function getActualFriction(partA, partB)
- return (partA.Friction * partA.FrictionWeight + partB.Friction * partB.FrictionWeight) / (partA.FrictionWeight + partB.FrictionWeight)
- end
- Although the formula above refers to the Friction and FrictionWeight of two parts, A and B, the formula is used in the same manner when determining Elasticity. Generally, when the weight of A is much greater than that of B, the actual value will be closer to A. If the weights are similar, the actual value will be close to the midpoint between their individual values.
- Summary
- Constructors
- new(material : Enum.Material)
- Returns a PhysicalProperties with the default properties for the given material.
- new(density : number,friction : number,elasticity : number)
- Returns a PhysicalProperties with the specified density, friction, and elasticity.
- new(density : number,friction : number,elasticity : number,frictionWeight : number,elasticityWeight : number)
- Creates a PhysicalProperties container with the specified density, friction, elasticity, weight of friction, and weight of elasticity.
- Properties
- Density:number
- The mass per unit volume of the part.
- Friction:number
- The deceleration of the part when rubbing against another part.
- Elasticity:number
- The amount of energy retained when colliding with another part.
- FrictionWeight:number
- The importance of the part's Friction property when calculating the friction with the colliding part.
- ElasticityWeight:number
- The importance of the part's Elasticity property when calculating the elasticity with the colliding part.
- ListLayout
- GridLayout
- PageLayout
- UICorner
- UIGradient
- UIStroke
- UISizeConstraint
- UITextSizeConstraint
- UIAnchor
- TextButton
- TextLabel
- ImageLabel
- ImageButton
- Frame
- ScrollingFrame
- TextBox
- SurfaceGui
- BillboardGui
- AlignPosition
- AlignOrientation
- AlignSize
- ScreenGui
- Frame
- TextLabel
- TextButton
- ImageLabel
- ImageButton
- UICorner
- UIPadding
- UIScale
- UIStroke
- UIGridLayout
- UIListLayout
- UIPageLayout
- UIPadding
- UIAspectRatioConstraint
- TextBox
- ScrollingFrame
Advertisement
Add Comment
Please, Sign In to add comment