PhysicsMaterial

A material for physics properties.

Provides a means of modifying the collision properties of a PhysicsBody.

Members

Aliases

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

Functions

getBounce
double getBounce()
getFriction
double getFriction()
isAbsorbent
bool isAbsorbent()
isRough
bool isRough()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(PhysicsMaterial other)
opEquals
bool opEquals(typeof(null) n)
setAbsorbent
void setAbsorbent(bool absorbent)
setBounce
void setBounce(double bounce)
setFriction
void setFriction(double friction)
setRough
void setRough(bool rough)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

absorbent
bool absorbent [@property getter]
bool absorbent [@property setter]

If true, subtracts the bounciness from the colliding object's bounciness instead of adding it.

bounce
double bounce [@property getter]
double bounce [@property setter]

The body's bounciness. Values range from 0 (no bounce) to 1 (full bounciness).

friction
double friction [@property getter]
double friction [@property setter]

The body's friction. Values range from 0 (frictionless) to 1 (maximum friction).

rough
bool rough [@property getter]
bool rough [@property setter]

If true, the physics engine will use the friction of the object marked as "rough" when two objects collide. If false, the physics engine will use the lowest friction of all colliding objects instead. If true for both colliding objects, the physics engine will use the highest friction.

Static functions

_new
PhysicsMaterial _new()

Construct a new instance of PhysicsMaterial. Note: use memnew!PhysicsMaterial 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