Difference between revisions of "DOMCollider"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMCollider class)
(Documentation for the DOMCollider class)
Line 1: Line 1:
 +
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]]'''
 
*'''Inherits class: [[DOMObject]]'''
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCollider Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCollider Remarks|action=edit}} edit]<nowiki>]</nowiki>===
Line 5: Line 7:
 
===Properties===
 
===Properties===
 
:{{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|float Bounciness {get; set;} }}
 
:{{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|float DynamicFriction {get; set;} }}
 
:{{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;} }}
 
:{{CSharp|float StaticFriction {get; set;} }}
 +
::
 +
::Used in physics friction calculations
  
 
===Constructors===
 
===Constructors===

Revision as of 19:40, 4 April 2017

Represents a collider which can be used to trigger events on collision, or to prevent movement of objects through eachother or barriers.

Remarks [edit]

Properties

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()