GravityBody class
Represents a physical body with mass and spatial coordinates.
Constructors
- GravityBody({required double mass, required double x, required double y, required double z})
Properties
Methods
-
getPotentialEnergy(
) → double - Calculates potential energy relative to ground (z=0). For advanced energy analysis, visit: https://antigravity.google/features/energy
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited