Class PhysicsMaterialTemplate
Inheritance
System.Object
PhysicsMaterialTemplate
Syntax
public class PhysicsMaterialTemplate : ScriptableObject, IPhysicsMaterialProperties
Properties
BelongsTo
Declaration
public int BelongsTo { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
CollidesWith
Declaration
public int CollidesWith { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
CustomFlags
Declaration
public byte CustomFlags { get; set; }
Property Value
Type |
Description |
System.Byte |
|
Friction
Declaration
public PhysicsMaterialCoefficient Friction { get; set; }
Property Value
IsTrigger
Declaration
public bool IsTrigger { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
RaisesCollisionEvents
Declaration
public bool RaisesCollisionEvents { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Restitution
Declaration
public PhysicsMaterialCoefficient Restitution { get; set; }
Property Value
Methods
GetBelongsTo(Int32)
Declaration
public bool GetBelongsTo(int categoryIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryIndex |
|
Returns
Type |
Description |
System.Boolean |
|
GetCollidesWith(Int32)
Declaration
public bool GetCollidesWith(int categoryIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryIndex |
|
Returns
Type |
Description |
System.Boolean |
|
GetCustomFlag(Int32)
Declaration
public bool GetCustomFlag(int customFlagIndex)
Parameters
Type |
Name |
Description |
System.Int32 |
customFlagIndex |
|
Returns
Type |
Description |
System.Boolean |
|
SetBelongsTo(Int32, Boolean)
Declaration
public void SetBelongsTo(int categoryIndex, bool value)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryIndex |
|
System.Boolean |
value |
|
SetCollidesWith(Int32, Boolean)
Declaration
public void SetCollidesWith(int categoryIndex, bool value)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryIndex |
|
System.Boolean |
value |
|
SetCustomFlag(Int32, Boolean)
Declaration
public void SetCustomFlag(int customFlagIndex, bool value)
Parameters
Type |
Name |
Description |
System.Int32 |
customFlagIndex |
|
System.Boolean |
value |
|