A material for physics properties.
    public class PhysicsMaterial : Resource

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

Inheritance Chain

Constructors

    public PhysicsMaterial()

Properties

    public bool Absorbent { get; set; }

    public float Bounce { get; set; }

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

    public float Friction { get; set; }

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

    public bool Rough { get; set; }

Methods

    [Obsolete("GetBounce is deprecated. Use the Bounce property instead.")]
    public float GetBounce()

Getter for Bounce

    [Obsolete("GetFriction is deprecated. Use the Friction property instead.")]
    public float GetFriction()

Getter for Friction

    [Obsolete("IsAbsorbent is deprecated. Use the Absorbent property instead.")]
    public bool IsAbsorbent()

Getter for Absorbent

    [Obsolete("IsRough is deprecated. Use the Rough property instead.")]
    public bool IsRough()

Getter for Rough

    [Obsolete("SetAbsorbent is deprecated. Use the Absorbent property instead.")]
    public void SetAbsorbent(bool absorbent)

Setter for Absorbent

    [Obsolete("SetBounce is deprecated. Use the Bounce property instead.")]
    public void SetBounce(float bounce)

Setter for Bounce

    [Obsolete("SetFriction is deprecated. Use the Friction property instead.")]
    public void SetFriction(float friction)

Setter for Friction

    [Obsolete("SetRough is deprecated. Use the Rough property instead.")]
    public void SetRough(bool rough)

Setter for Rough

Tags: