|
Drag[en]gine Script Module DragonScript 1.32.1
|
Prop field. More...
Public Member Functions | |
Constructors | |
| PropField | new () |
| Create prop field. | |
Management | |
| void | setPosition (DVector position) |
| Set position of the prop field. | |
| PropFieldListener | getListener () |
| Listener or null if not set. | |
| void | setListener (PropFieldListener listener) |
| Set listener or null if not set. | |
| World | getParentWorld () |
| Parent world or null if not added to a world. | |
Types | |
| int | addType (Model model, Skin skin, float rotPerForce, float restitution, CollisionFilter collisionFilter, int instanceCount) |
| Add type returning the type index. | |
| void | removeAllTypes () |
| Remove all types. | |
| void | setInstanceAt (int type, int instance, Vector position, Vector rotation, float scaling) |
| Set properties of a type. | |
Prop field.
This is a native class.
| int Dragengine.Scenery.PropField.addType | ( | Model | model, |
| Skin | skin, | ||
| float | rotPerForce, | ||
| float | restitution, | ||
| CollisionFilter | collisionFilter, | ||
| int | instanceCount | ||
| ) |
Add type returning the type index.
| PropFieldListener Dragengine.Scenery.PropField.getListener | ( | ) |
Listener or null if not set.
| World Dragengine.Scenery.PropField.getParentWorld | ( | ) |
Parent world or null if not added to a world.
| PropField Dragengine.Scenery.PropField.new | ( | ) |
Create prop field.
| void Dragengine.Scenery.PropField.removeAllTypes | ( | ) |
Remove all types.
| void Dragengine.Scenery.PropField.setInstanceAt | ( | int | type, |
| int | instance, | ||
| Vector | position, | ||
| Vector | rotation, | ||
| float | scaling | ||
| ) |
Set properties of a type.
| EOutOfBoundary | type is less than 0 or larger than or equal to type count. |
| void Dragengine.Scenery.PropField.setListener | ( | PropFieldListener | listener | ) |
Set listener or null if not set.
| void Dragengine.Scenery.PropField.setPosition | ( | DVector | position | ) |
Set position of the prop field.