GravitationalSystem Class |
Namespace: Archon.SwissArmyLib.Gravity
The GravitationalSystem type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize |
Destructor
(Overrides ObjectFinalize.) | |
GetGravityAtPoint |
Gets the sum of all gravitational forces at a specific location.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Register(Rigidbody) |
Registers a Rigidbody that should be affected by gravitational forces in this system.
| |
Register(Rigidbody2D) |
Registers a Rigidbody2D that should be affected by gravitational forces in this system.
| |
Register(IGravitationalAffecter) |
Registers a gravitational affecter to be part of the system.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unregister(Rigidbody) |
Unregisters a Rigidbody from the system, so it no longer is affected by gravitational forces in this system.
| |
Unregister(Rigidbody2D) |
Unregisters a Rigidbody2D from the system, so it no longer is affected by gravitational forces in this system.
| |
Unregister(IGravitationalAffecter) |
Unregisters a gravitational affecter from the system, so it no longer affects entities.
|