Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Add Workspace.Gravity (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren authored and LPGhatguy committed Feb 12, 2019
1 parent 5dd2e45 commit 03b70f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ This document should remain up-to-date with current API coverage and status.
* VerticalAlignment
* UIListLayout
* Padding
* Workspace
* AllowThirdPartySales
* DistributedGameTime
* Gravity

## Implemented Services
* ContentProvider
Expand Down
6 changes: 6 additions & 0 deletions lib/instances/Workspace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ Workspace.properties.AllowThirdPartySales = InstanceProperty.typed("boolean", {
end
})

Workspace.properties.Gravity = InstanceProperty.typed("number", {
getDefault = function()
return 196.2
end
})

return Workspace
1 change: 1 addition & 0 deletions lib/instances/Workspace_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ describe("instances.Workspace", function()
local instance = Workspace:new()

assert.not_nil(instance)
assert.equal(typeof(instance.Gravity), "number")
end)

describe("CurrentCamera", function()
Expand Down

0 comments on commit 03b70f7

Please sign in to comment.