Class GravitySystem
Namespace: Content.Server.Gravity
Assembly: Content.Server.dll
Syntax
public sealed class GravitySystem : SharedGravitySystem
Methods
| Improve this Doc View SourceEnableGravity(EntityUid, GravityComponent)
Enables gravity. Note that this is a fast-path for GravityGeneratorSystem. This means it does nothing if Inherent is set and it might be wiped away with a refresh if you're not supposed to be doing whatever you're doing.
Declaration
public void EnableGravity(EntityUid uid, GravityComponent gravity = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
GravityComponent | gravity |
Initialize()
Declaration
public override void Initialize()
Overrides
| Improve this Doc View SourceRefreshGravity(EntityUid, GravityComponent)
Iterates gravity components and checks if this entity can have gravity applied.
Declaration
public void RefreshGravity(EntityUid uid, GravityComponent gravity = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
GravityComponent | gravity |