Пример #1
0
/// <summary>
/// Return a pointer to the physical material used by this material instance.
/// @return The physical material.
/// </summary>
        public UPhysicalMaterial GetPhysicalMaterial()
        {
            CheckIsValid();
            IntPtr ___ret = GetPhysicalMaterial(_this.Get());

            if (___ret == IntPtr.Zero)
            {
                return(null);
            }
            UPhysicalMaterial ___ret2 = new UPhysicalMaterial()
            {
                _this = ___ret
            }; return(___ret2);
        }
Пример #2
0
/// <summary>
/// Changes the current PhysMaterialOverride for this component.
/// Note that if physics is already running on this component, this will _not_ alter its mass/inertia etc,
/// it will only change its surface properties like friction.
/// </summary>
        public void SetPhysMaterialOverride(UPhysicalMaterial NewPhysMaterial)
        {
            CheckIsValid();
            SetPhysMaterialOverride(_this.Get(), NewPhysMaterial);
        }
Пример #3
0
 /// <summary>
 /// Changes the current PhysMaterialOverride for this component.
 /// Note that if physics is already running on this component, this will _not_ alter its mass/inertia etc,
 /// it will only change its surface properties like friction.
 /// </summary>
 public extern virtual void SetPhysMaterialOverride(UPhysicalMaterial NewPhysMaterial);