Show / Hide Table of Contents

Class GravitySystem

Inheritance
System.Object
SharedGravitySystem
GravitySystem
Namespace: Content.Server.Gravity
Assembly: Content.Server.dll
Syntax
public sealed class GravitySystem : SharedGravitySystem

Methods

| Improve this Doc View Source

EnableGravity(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
| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
Overrides
SharedGravitySystem.Initialize()
| Improve this Doc View Source

RefreshGravity(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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾