-
Notifications
You must be signed in to change notification settings - Fork 16
class_watercraftballast
jonri edited this page Oct 28, 2023
·
7 revisions
This file is automatically generated. To make changes, please edit the corresponding xml file in the doc_classes/ folder instead.
Inherits:
Allows off-center weight to be added to a HydroRigidBody
By default, the mass of a HydroRigidBody is centered at the origin of the object. Adding additional weight at various points can improve realism in some cases. The WatercraftBallast node allows you to position a point mass at a specific location. This can be useful for cases such as:
- Creating a keel on a sailboat
- Simulating cargo on a ship
- Shifting the weight of a rider
- float mass
Default | 0.0 |
Setter | set_mass(value) |
Getter | get_mass() |
The mass of the ballast.
- Vector3 origin
Default | Vector3(0, 0, 0) |
Setter | set_origin(value) |
Getter | get_origin() |
The location of the ballast.