SoftBody

A soft mesh physics body.

A deformable physics body. Used to create elastic or deformable objects such as cloth, rubber, or other flexible materials.

@GodotBaseClass
struct SoftBody {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_drawSoftMesh
void _drawSoftMesh()
addCollisionExceptionWith
void addCollisionExceptionWith(Node _body)

Adds a body to the list of bodies that this body can't collide with.

getAreaangularStiffness
double getAreaangularStiffness()
getCollisionExceptions
Array getCollisionExceptions()

Returns an array of nodes that were added as collision exceptions for this body.

getCollisionLayer
long getCollisionLayer()
getCollisionLayerBit
bool getCollisionLayerBit(long bit)

Returns an individual bit on the collision mask.

getCollisionMask
long getCollisionMask()
getCollisionMaskBit
bool getCollisionMaskBit(long bit)

Returns an individual bit on the collision mask.

getDampingCoefficient
double getDampingCoefficient()
getDragCoefficient
double getDragCoefficient()
getLinearStiffness
double getLinearStiffness()
getParentCollisionIgnore
NodePath getParentCollisionIgnore()
getPoseMatchingCoefficient
double getPoseMatchingCoefficient()
getPressureCoefficient
double getPressureCoefficient()
getSimulationPrecision
long getSimulationPrecision()
getTotalMass
double getTotalMass()
getVolumeStiffness
double getVolumeStiffness()
isRayPickable
bool isRayPickable()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(SoftBody other)
opEquals
bool opEquals(typeof(null) n)
removeCollisionExceptionWith
void removeCollisionExceptionWith(Node _body)

Removes a body from the list of bodies that this body can't collide with.

setAreaangularStiffness
void setAreaangularStiffness(double areaAngular_stiffness)
setCollisionLayer
void setCollisionLayer(long collision_layer)
setCollisionLayerBit
void setCollisionLayerBit(long bit, bool value)

Sets individual bits on the layer mask. Use this if you only need to change one layer's value.

setCollisionMask
void setCollisionMask(long collision_mask)
setCollisionMaskBit
void setCollisionMaskBit(long bit, bool value)

Sets individual bits on the collision mask. Use this if you only need to change one layer's value.

setDampingCoefficient
void setDampingCoefficient(double damping_coefficient)
setDragCoefficient
void setDragCoefficient(double drag_coefficient)
setLinearStiffness
void setLinearStiffness(double linear_stiffness)
setParentCollisionIgnore
void setParentCollisionIgnore(NodePathArg0 parent_collision_ignore)
setPoseMatchingCoefficient
void setPoseMatchingCoefficient(double pose_matching_coefficient)
setPressureCoefficient
void setPressureCoefficient(double pressure_coefficient)
setRayPickable
void setRayPickable(bool ray_pickable)
setSimulationPrecision
void setSimulationPrecision(long simulation_precision)
setTotalMass
void setTotalMass(double mass)
setVolumeStiffness
void setVolumeStiffness(double volume_stiffness)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

areaangularStiffness
double areaangularStiffness [@property getter]
double areaangularStiffness [@property setter]
collisionLayer
long collisionLayer [@property getter]
long collisionLayer [@property setter]

The physics layers this SoftBody is in. Collidable objects can exist in any of 32 different layers. These layers work like a tagging system, and are not visual. A collidable can use these layers to select with which objects it can collide, using the collision_mask property. A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. See url=https://docs.godotengine.org/en/3.3/tutorials/physics/physics_introduction.html#collision-layers-and-masksCollision layers and masks/url in the documentation for more information.

collisionMask
long collisionMask [@property getter]
long collisionMask [@property setter]

The physics layers this SoftBody scans for collisions. See url=https://docs.godotengine.org/en/3.3/tutorials/physics/physics_introduction.html#collision-layers-and-masksCollision layers and masks/url in the documentation for more information.

dampingCoefficient
double dampingCoefficient [@property getter]
double dampingCoefficient [@property setter]
dragCoefficient
double dragCoefficient [@property getter]
double dragCoefficient [@property setter]
linearStiffness
double linearStiffness [@property getter]
double linearStiffness [@property setter]
parentCollisionIgnore
NodePath parentCollisionIgnore [@property getter]
NodePath parentCollisionIgnore [@property setter]

NodePath to a CollisionObject this SoftBody should avoid clipping.

poseMatchingCoefficient
double poseMatchingCoefficient [@property getter]
double poseMatchingCoefficient [@property setter]
pressureCoefficient
double pressureCoefficient [@property getter]
double pressureCoefficient [@property setter]
rayPickable
bool rayPickable [@property getter]
bool rayPickable [@property setter]

If true, the SoftBody will respond to RayCasts.

simulationPrecision
long simulationPrecision [@property getter]
long simulationPrecision [@property setter]

Increasing this value will improve the resulting simulation, but can affect performance. Use with care.

totalMass
double totalMass [@property getter]
double totalMass [@property setter]

The SoftBody's mass.

volumeStiffness
double volumeStiffness [@property getter]
double volumeStiffness [@property setter]

Static functions

_new
SoftBody _new()

Construct a new instance of SoftBody. Note: use memnew!SoftBody instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta