|
Drag[en]gine Script Module DragonScript 1.35
|
Force field. More...
Public Member Functions | |
Constructors | |
| ForceField | new () |
| Create force field. | |
Management | |
| DVector | getPosition () |
| Position. | |
| void | setPosition (DVector position) |
| Set position. | |
| Quaternion | getOrientation () |
| Orientation. | |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| World | getParentWorld () |
| Parent world or null if not added to a world. | |
| ShapeList | getInfluenceArea () |
| Influence area. | |
| void | setInfluenceArea (ShapeList area) |
| Set influence area. | |
| float | getRadius () |
| Falloff radius. | |
| void | setRadius (float radius) |
| Set falloff radius. | |
| float | getExponent () |
| Falloff exponent. | |
| void | setExponent (float exponent) |
| Set falloff exponent. | |
| ForceFieldType | getFieldType () |
| Field type. | |
| void | setFieldType (ForceFieldType type) |
| Set field type. | |
| ForceFieldApplication | getApplicationType () |
| Force application type. | |
| void | setApplicationType (ForceFieldApplication type) |
| Set application type. | |
| Vector | getDirection () |
| Force direction. | |
| void | setDirection (Vector direction) |
| Set force direction. | |
| float | getForce () |
| Force in newton. | |
| void | setForce (float force) |
| Set force in newton. | |
| float | getFluctuationDirection () |
| Fluctuation of direction in radians. | |
| void | setFluctuationDirection (float fluctuation) |
| Set fluctuation of direction in radians. | |
| float | getFluctuationForce () |
| Fluctuation of force in newton. | |
| void | setFluctuationForce (float fluctuation) |
| Set fluctuation of force in newton. | |
| ShapeList | getShape () |
| Force field shape. | |
| void | setShape (ShapeList shape) |
| Set force field shape. | |
| CollisionFilter | getCollisionFilter () |
| Collision filter. | |
| void | setCollisionFilter (CollisionFilter filter) |
| Set collision filter. | |
| bool | getEnabled () |
| Force field is enabled. | |
| void | setEnabled (bool enabled) |
| Set if force field is enabled. | |
Force field.
This is a native class.
| ForceFieldApplication Dragengine.Scenery.ForceField.getApplicationType | ( | ) |
| CollisionFilter Dragengine.Scenery.ForceField.getCollisionFilter | ( | ) |
| Vector Dragengine.Scenery.ForceField.getDirection | ( | ) |
| bool Dragengine.Scenery.ForceField.getEnabled | ( | ) |
| float Dragengine.Scenery.ForceField.getExponent | ( | ) |
| ForceFieldType Dragengine.Scenery.ForceField.getFieldType | ( | ) |
Field type.
Referenced by getForce().
| float Dragengine.Scenery.ForceField.getFluctuationDirection | ( | ) |
Fluctuation of direction in radians.
Referenced by setEnabled().
| float Dragengine.Scenery.ForceField.getFluctuationForce | ( | ) |
| float Dragengine.Scenery.ForceField.getForce | ( | ) |
| ShapeList Dragengine.Scenery.ForceField.getInfluenceArea | ( | ) |
| Quaternion Dragengine.Scenery.ForceField.getOrientation | ( | ) |
| World Dragengine.Scenery.ForceField.getParentWorld | ( | ) |
Parent world or null if not added to a world.
References setOrientation().
Referenced by getInfluenceArea().
| DVector Dragengine.Scenery.ForceField.getPosition | ( | ) |
| float Dragengine.Scenery.ForceField.getRadius | ( | ) |
Falloff radius.
Referenced by setExponent().
| ShapeList Dragengine.Scenery.ForceField.getShape | ( | ) |
Force field shape.
Referenced by setEnabled().
| ForceField Dragengine.Scenery.ForceField.new | ( | ) |
| void Dragengine.Scenery.ForceField.setApplicationType | ( | ForceFieldApplication | type | ) |
Set application type.
Referenced by getFluctuationForce().
| void Dragengine.Scenery.ForceField.setCollisionFilter | ( | CollisionFilter | filter | ) |
Set collision filter.
Referenced by setEnabled().
| void Dragengine.Scenery.ForceField.setDirection | ( | Vector | direction | ) |
Set force direction.
Referenced by setShape().
| void Dragengine.Scenery.ForceField.setEnabled | ( | bool | enabled | ) |
Set if force field is enabled.
References getCollisionFilter(), getEnabled(), getFluctuationDirection(), getFluctuationForce(), getShape(), setCollisionFilter(), setEnabled(), setFluctuationDirection(), setFluctuationForce(), and setShape().
Referenced by setEnabled().
| void Dragengine.Scenery.ForceField.setExponent | ( | float | exponent | ) |
| void Dragengine.Scenery.ForceField.setFieldType | ( | ForceFieldType | type | ) |
| void Dragengine.Scenery.ForceField.setFluctuationDirection | ( | float | fluctuation | ) |
Set fluctuation of direction in radians.
References getApplicationType().
Referenced by setEnabled().
| void Dragengine.Scenery.ForceField.setFluctuationForce | ( | float | fluctuation | ) |
| void Dragengine.Scenery.ForceField.setForce | ( | float | force | ) |
| void Dragengine.Scenery.ForceField.setInfluenceArea | ( | ShapeList | area | ) |
Set influence area.
Referenced by getExponent().
| void Dragengine.Scenery.ForceField.setOrientation | ( | Quaternion | orientation | ) |
| void Dragengine.Scenery.ForceField.setPosition | ( | DVector | position | ) |
Set position.
Referenced by getOrientation().
| void Dragengine.Scenery.ForceField.setRadius | ( | float | radius | ) |
| void Dragengine.Scenery.ForceField.setShape | ( | ShapeList | shape | ) |