Difference between revisions of "DOMCollider"
From Virtual World Web Wiki
(Documentation for the DOMCollider class) |
(Documentation for the DOMCollider class) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * '''Inherits class: [[DOMObject]]''' | + | Represents a collider which can be used to trigger events on collision, or to prevent movement of objects through eachother or barriers. |
+ | |||
+ | *'''Inherits class: [[DOMObject]]''' | ||
+ | ===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCollider Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
+ | {{#ifexist:DOMCollider Remarks|{{:DOMCollider Remarks}}|}} | ||
+ | |||
===Properties=== | ===Properties=== | ||
+ | :{{CSharp|DOMAudioFontMaterial AudioFontMaterial {get; set;} }} | ||
+ | :: | ||
+ | ::AudioFontMaterial to use when a user is standing on this collider | ||
+ | |||
:{{CSharp|DOMPhysicsCombineMode BounceCombine {get; set;} }} | :{{CSharp|DOMPhysicsCombineMode BounceCombine {get; set;} }} | ||
+ | :: | ||
+ | ::Used in physics friction calculations. How the bounciness of two colliding objects is combined. | ||
− | :{{CSharp| | + | :{{CSharp|float Bounciness {get; set;} }} |
+ | :: | ||
+ | ::Determines how much of the force of an impacting object is reflected back into that object | ||
:{{CSharp|Point3D BoundsCenter {get; set;} }} | :{{CSharp|Point3D BoundsCenter {get; set;} }} | ||
+ | :: | ||
+ | ::An offset for the pivot of the collider | ||
− | :{{CSharp| | + | :{{CSharp|float DynamicFriction {get; set;} }} |
+ | :: | ||
+ | ::Used in physics friction calculations | ||
:{{CSharp|DOMPhysicsCombineMode FrictionCombine {get; set;} }} | :{{CSharp|DOMPhysicsCombineMode FrictionCombine {get; set;} }} | ||
+ | :: | ||
+ | ::Used in physics friction calculations. How the friction of two colliding objects is combined. | ||
:{{CSharp|bool PhysicsMaterialEnabled {get; set;} }} | :{{CSharp|bool PhysicsMaterialEnabled {get; set;} }} | ||
+ | :: | ||
+ | ::True if this collider should express a physics material | ||
+ | |||
+ | :{{CSharp|float StaticFriction {get; set;} }} | ||
+ | :: | ||
+ | ::Used in physics friction calculations | ||
+ | |||
+ | ===Constructors=== | ||
+ | :{{CSharp|DOMCollider()}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCollider with default settings | ||
+ | |||
+ | :{{CSharp|DOMCollider(DOMObject[] children)}} | ||
+ | :: | ||
+ | ::Constructs a new DOMCollider, adding children at the same time | ||
− | :{{CSharp| | + | :{{CSharp|DOMCollider(string title, DOMObject[] children)}} |
+ | :: | ||
+ | ::Constructs a new DOMCollider, setting a title and adding children at the same time | ||
− | + | __NOTOC____NOEDITSECTION__ |
Latest revision as of 17:16, 19 November 2018
Represents a collider which can be used to trigger events on collision, or to prevent movement of objects through eachother or barriers.
- Inherits class: DOMObject
Remarks [edit]
Properties
- DOMAudioFontMaterial AudioFontMaterial {get; set;}
- AudioFontMaterial to use when a user is standing on this collider
- DOMPhysicsCombineMode BounceCombine {get; set;}
- Used in physics friction calculations. How the bounciness of two colliding objects is combined.
- float Bounciness {get; set;}
- Determines how much of the force of an impacting object is reflected back into that object
- Point3D BoundsCenter {get; set;}
- An offset for the pivot of the collider
- float DynamicFriction {get; set;}
- Used in physics friction calculations
- DOMPhysicsCombineMode FrictionCombine {get; set;}
- Used in physics friction calculations. How the friction of two colliding objects is combined.
- bool PhysicsMaterialEnabled {get; set;}
- True if this collider should express a physics material
- float StaticFriction {get; set;}
- Used in physics friction calculations
Constructors
- DOMCollider()
- Constructs a new DOMCollider with default settings
- DOMCollider(DOMObject[] children)
- Constructs a new DOMCollider, adding children at the same time
- DOMCollider(string title, DOMObject[] children)
- Constructs a new DOMCollider, setting a title and adding children at the same time