Skip to content

RigidBody2D CenterOfMassModeEnum

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.RigidBody2D.CenterOfMassModeEnum
Namespace Electron2D
Kind enum
Category Physics

Overview

Identifies how the body's center of mass should be selected.

Syntax

public enum Electron2D.RigidBody2D.CenterOfMassModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: RigidBody2D.CenterOfMassMode

Center-of-mass mode values for RigidBody2D.

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Auto Enum value Calculate the center of mass from shapes.
Custom Enum value Use Electron2D.RigidBody2D.CenterOfMass.

Member Details

Auto

Kind: Enum value

public const Electron2D.RigidBody2D.CenterOfMassModeEnum Auto

Summary

Calculate the center of mass from shapes.

Remarks

Use this value with APIs that accept CenterOfMassModeEnum.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.RigidBody2D.CenterOfMassModeEnum

Custom

Kind: Enum value

public const Electron2D.RigidBody2D.CenterOfMassModeEnum Custom

Summary

Use Electron2D.RigidBody2D.CenterOfMass.

Remarks

Use this value with APIs that accept CenterOfMassModeEnum.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.RigidBody2D.CenterOfMassModeEnum

Clone this wiki locally