Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECComposeCollider Class Reference

Composable component collider for element class. More...

Inheritance diagram for Dragengine.Scenery.ECComposeCollider:

Public Member Functions

void collisionCategoryClearBit (int bit)
 Convience function clearing bit in collision category. More...
 
void collisionCategoryReplace (LayerMask layerMask)
 Convience function replacing collision category. More...
 
void collisionCategorySetBit (int bit)
 Convience function setting bit in collision category. More...
 
void collisionFilterClearBit (int bit)
 Convience function clearing bit in collision filter. More...
 
void collisionFilterSetBit (int bit)
 Convience function setting bit in collision filter. More...
 
Collider createCollider (Element element, StubElement stub)
 Create collider for the element from stub. More...
 
Collider createCollider (Element element, StubElement stub, Component component)
 Create collider for the element from stub. More...
 
CollisionFilter getCollisionFilter ()
 Collision filter. More...
 
ECPBoolean getEnabled ()
 Enable collider. More...
 
ECPVector getLocalGravity ()
 Local gravity or null to use the world gravity. More...
 
ECPEnumeration getPhysicsType ()
 Physics type. More...
 
ECPRig getRig ()
 Rig if no component is used. More...
 
ECPShapeList getShape ()
 Shape if no component is used. More...
 
ECPFloat getWeight ()
 Weight in kg. More...
 
ECComposeCollider new (ElementClass ownerClass)
 Create composable element class. More...
 
ECComposeCollider new (ElementClass ownerClass, String prefix)
 
void setCollisionFilter (CollisionFilter collisionFilter)
 Set collision filter. More...
 

Protected Member Functions

void initCollider (Collider collider, Element element, StubElement stub)
 Init collider from stub. More...
 

Detailed Description

Composable component collider for element class.

Provides collider support to element class without subclassing from a specific class. Element is set as owner of the created component.

Member Function Documentation

◆ collisionCategoryClearBit()

void Dragengine.Scenery.ECComposeCollider.collisionCategoryClearBit ( int  bit)

Convience function clearing bit in collision category.

◆ collisionCategoryReplace()

void Dragengine.Scenery.ECComposeCollider.collisionCategoryReplace ( LayerMask  layerMask)

Convience function replacing collision category.

◆ collisionCategorySetBit()

void Dragengine.Scenery.ECComposeCollider.collisionCategorySetBit ( int  bit)

Convience function setting bit in collision category.

◆ collisionFilterClearBit()

void Dragengine.Scenery.ECComposeCollider.collisionFilterClearBit ( int  bit)

Convience function clearing bit in collision filter.

◆ collisionFilterSetBit()

void Dragengine.Scenery.ECComposeCollider.collisionFilterSetBit ( int  bit)

Convience function setting bit in collision filter.

◆ createCollider() [1/2]

Collider Dragengine.Scenery.ECComposeCollider.createCollider ( Element  element,
StubElement  stub 
)

Create collider for the element from stub.

element is set as owner of collider if a collider is created.

◆ createCollider() [2/2]

Collider Dragengine.Scenery.ECComposeCollider.createCollider ( Element  element,
StubElement  stub,
Component  component 
)

Create collider for the element from stub.

element is set as owner of collider if a collider is created.

◆ getCollisionFilter()

CollisionFilter Dragengine.Scenery.ECComposeCollider.getCollisionFilter ( )

Collision filter.

◆ getEnabled()

ECPBoolean Dragengine.Scenery.ECComposeCollider.getEnabled ( )

Enable collider.

◆ getLocalGravity()

ECPVector Dragengine.Scenery.ECComposeCollider.getLocalGravity ( )

Local gravity or null to use the world gravity.

◆ getPhysicsType()

ECPEnumeration Dragengine.Scenery.ECComposeCollider.getPhysicsType ( )

Physics type.

◆ getRig()

ECPRig Dragengine.Scenery.ECComposeCollider.getRig ( )

Rig if no component is used.

◆ getShape()

ECPShapeList Dragengine.Scenery.ECComposeCollider.getShape ( )

Shape if no component is used.

◆ getWeight()

ECPFloat Dragengine.Scenery.ECComposeCollider.getWeight ( )

Weight in kg.

◆ initCollider()

void Dragengine.Scenery.ECComposeCollider.initCollider ( Collider  collider,
Element  element,
StubElement  stub 
)
protected

Init collider from stub.

◆ new() [1/2]

ECComposeCollider Dragengine.Scenery.ECComposeCollider.new ( ElementClass  ownerClass)

Create composable element class.

Adds all properties to ownerClass. If you do not want a property to be configurable using XML subclassing use ownerClass.removeProperty() to remove them.

◆ new() [2/2]

ECComposeCollider Dragengine.Scenery.ECComposeCollider.new ( ElementClass  ownerClass,
String  prefix 
)

◆ setCollisionFilter()

void Dragengine.Scenery.ECComposeCollider.setCollisionFilter ( CollisionFilter  collisionFilter)

Set collision filter.


The documentation for this class was generated from the following file: