Drag[en]gine Script Module DragonScript
1.23
|
Composable component collider for element class. More...
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... | |
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.
void Dragengine.Scenery.ECComposeCollider.collisionCategoryClearBit | ( | int | bit | ) |
Convience function clearing bit in collision category.
void Dragengine.Scenery.ECComposeCollider.collisionCategoryReplace | ( | LayerMask | layerMask | ) |
Convience function replacing collision category.
void Dragengine.Scenery.ECComposeCollider.collisionCategorySetBit | ( | int | bit | ) |
Convience function setting bit in collision category.
void Dragengine.Scenery.ECComposeCollider.collisionFilterClearBit | ( | int | bit | ) |
Convience function clearing bit in collision filter.
void Dragengine.Scenery.ECComposeCollider.collisionFilterSetBit | ( | int | bit | ) |
Convience function setting bit in collision filter.
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.
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.
CollisionFilter Dragengine.Scenery.ECComposeCollider.getCollisionFilter | ( | ) |
Collision filter.
ECPBoolean Dragengine.Scenery.ECComposeCollider.getEnabled | ( | ) |
Enable collider.
ECPVector Dragengine.Scenery.ECComposeCollider.getLocalGravity | ( | ) |
Local gravity or null to use the world gravity.
ECPEnumeration Dragengine.Scenery.ECComposeCollider.getPhysicsType | ( | ) |
Physics type.
ECPShapeList Dragengine.Scenery.ECComposeCollider.getShape | ( | ) |
Shape if no component is used.
ECPFloat Dragengine.Scenery.ECComposeCollider.getWeight | ( | ) |
Weight in kg.
|
protected |
Init collider from stub.
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.
ECComposeCollider Dragengine.Scenery.ECComposeCollider.new | ( | ElementClass | ownerClass, |
String | prefix | ||
) |
void Dragengine.Scenery.ECComposeCollider.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter.